The attached patch moves the loop modprobe call in mayflower generated
init, to before the udevsettle call.  Thus also removing the while-wait
loop that Jeremy wisely added to my dynamic loop device patch.

Theoretically, one could argue that the while-wait loop is still needed,
as the udevsettle command is allowed to fail.  I would personally feel
comfortable committing this without the while-wait loop, because it
seems like if udevsettle fails with a timeout of 30, it will never(tm)
be because the loop devices have not been created.

-dmc

diff -Naur livecd.200709230129/creator/mayflower livecd.1.earlyLoopModprobe/creator/mayflower
--- livecd.200709230129/creator/mayflower	2007-09-23 06:29:24.000000000 +0000
+++ livecd.1.earlyLoopModprobe/creator/mayflower	2007-09-23 06:48:52.000000000 +0000
@@ -434,6 +434,8 @@
 # FIXME: hack since sr_mod seems to fail to get loaded sometimes (#239657)
 /sbin/modprobe sr_mod
 
+modprobe loop max_loop=16
+
 if [ "\$quiet" != "1" ] ; then
     echo "starting udevd"
 fi
@@ -635,11 +637,6 @@
     mount -n -o ro,remount /sysroot
 }
 
-modprobe loop max_loop=16
-while [ ! -b /dev/loop15 ] ; do
-  sleep 1
-done
-
 # we might have a genMinInstDelta delta file for anaconda to take advantage of
 if [ -e /sysroot/LiveOS/osmin.gz ]; then
     OSMINGZ=/sysroot/LiveOS/osmin.gz

--
Fedora-livecd-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/fedora-livecd-list

Reply via email to