summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authormaximilian attems <maks@debian.org>2005-10-21 18:33:03 +0200
committermaximilian attems <maks@debian.org>2005-10-21 18:33:03 +0200
commitb96ed45312562bbfc976ce0c6cf32b7e704f1e2f (patch)
treebce6a45954775445d8231d9341883c9b888f3506 /init
parenta5ceeefab355e57948134a8857f0b15fa56a8c6e (diff)
downloadinitramfs-tools-b96ed45312562bbfc976ce0c6cf32b7e704f1e2f.tar.gz
initramfs-tools-b96ed45312562bbfc976ce0c6cf32b7e704f1e2f.zip
waldi udev fixes
Diffstat (limited to 'init')
-rwxr-xr-xinit16
1 files changed, 12 insertions, 4 deletions
diff --git a/init b/init
index 4193dcd..113a224 100755
--- a/init
+++ b/init
@@ -67,15 +67,21 @@ run_scripts /scripts/init-top
. /scripts/${BOOT}
+depmod -a
+
+# Populate /dev tree
+log_begin_msg "Initializing /dev"
+mkdir /dev/.udevdb
+UDEVD_EXPECTED_SEQNUM=$(($(cat /sys/kernel/hotplug_seqnum) + 1)) udevd --daemon
+udevsynthesize
+sleep 2
+log_end_msg
+
log_begin_msg "Loading modules"
load_modules
log_end_msg
-# Populate /dev tree
-log_begin_msg "Initializing /dev"
parse_numeric ${ROOT}
-udevstart
-log_end_msg
if [ x${break} = xyes ]; then
panic "Spawning shell within the initramfs"
@@ -85,6 +91,8 @@ log_begin_msg "Running /scripts/init-premount"
run_scripts /scripts/init-premount
log_end_msg
+killall udevd
+
log_begin_msg "Mounting root file system"
mountroot
log_end_msg