summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaron@archlinux.org>2007-03-05 21:30:45 +0100
committerAaron Griffin <aaron@archlinux.org>2007-03-05 21:30:45 +0100
commit6a4c36b14aa896147b548eab950a91d7f2774014 (patch)
tree5f1b77667ee7f41cf221d3ecd7ad8fc25ea03b07
parent4fac6c16e0f60c13480eaa249c0a7a32cb211a8e (diff)
downloadmkinitcpio-6a4c36b14aa896147b548eab950a91d7f2774014.tar.gz
mkinitcpio-6a4c36b14aa896147b548eab950a91d7f2774014.tar.xz
Root delay *MUST* be passed on the command line if not using the filesystem hook
git-svn-id: http://projects.archlinux.org/svn/initramfs/mkinitcpio@198 880c04e9-e011-0410-abf7-b926e227c9cd
-rw-r--r--init4
1 files changed, 4 insertions, 0 deletions
diff --git a/init b/init
index b000770..3896e68 100644
--- a/init
+++ b/init
@@ -104,5 +104,9 @@ if [ -f "/message" ]; then
msg "$(cat /message)"
fi
+if [ "$rootdelay" != "0" ]; then
+ kinit_params="${kinit_params} rootdelay=${rootdelay}"
+fi
+
echo "/sbin/modprobe" > /proc/sys/kernel/modprobe
exec /bin/kinit -- "root=${root}" ${kinit_params} "${runlevel}" > /dev/null 2>&1