From f9b95b0a674ed3d55c3db7f44cbaa689ae29fb4c Mon Sep 17 00:00:00 2001 From: Benjamin Schieder Date: Tue, 14 Mar 2006 01:03:26 +0000 Subject: [PATCH] Benjamin Schieder: replace udevstart in bootdisk with the same manual work as in initrd [2006021415411613242] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@7193 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- target/bootdisk/linuxrc.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/target/bootdisk/linuxrc.sh b/target/bootdisk/linuxrc.sh index 29a2d765a..e722dee05 100644 --- a/target/bootdisk/linuxrc.sh +++ b/target/bootdisk/linuxrc.sh @@ -418,7 +418,16 @@ autoload_modules # some devices (scsi...) need time to settle... echo "Waiting for devices to settle..." sleep 5 -udevstart + +# create nodes for devices already in kernel +while read uevent; do + echo 1 > $uevent +done < <( find /sys -name uevent ) +udevwait=0 +while [ -d /dev/.udev/queue -a $udevwait -lt 300 ] ; do + sleep 1 + (( udevwait++ )) +done if [ ${autoboot} -eq 1 ] ; then load_ramdisk_file cdroms 1