From 1f7bdf8c3c431e64266542e436f5b6e1e1693cbb Mon Sep 17 00:00:00 2001 From: "Andreas V. 'netrunner' Meier" Date: Tue, 14 Mar 2006 01:07:37 +0000 Subject: [PATCH] Andreas V. Meier: bootdisk/linuxrc.sh: bewitch udev{,d} before autoprobing modules [2006021612441003197] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@7198 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- target/bootdisk/linuxrc.sh | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/target/bootdisk/linuxrc.sh b/target/bootdisk/linuxrc.sh index f03ffee27..5b82a0b94 100644 --- a/target/bootdisk/linuxrc.sh +++ b/target/bootdisk/linuxrc.sh @@ -410,14 +410,8 @@ cd /dev rm -rf fd ln -s /proc/self/fd cd - -mod_load_info - -autoload_modules - -# some devices (scsi...) need time to settle... -echo "Waiting for devices to settle..." -sleep 5 +/sbin/udevd --daemon # create nodes for devices already in kernel while read uevent; do echo 1 > $uevent @@ -428,6 +422,14 @@ while [ -d /dev/.udev/queue -a $udevwait -lt 300 ] ; do (( udevwait++ )) done +mod_load_info + +autoload_modules + +# some devices (scsi...) need time to settle... +echo "Waiting for devices to settle..." +sleep 5 + if [ ${autoboot} -eq 1 ] ; then load_ramdisk_file cdroms 1 fi