]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
init: Fix bogus message about invalid root device.
authorColin Guthrie <colin@mageia.org>
Sat, 31 Dec 2011 13:35:59 +0000 (13:35 +0000)
committerHarald Hoyer <harald@redhat.com>
Mon, 9 Jan 2012 12:34:40 +0000 (13:34 +0100)
When the initqueue cannot be processed, it might be about an invalid
root device (in which case a separate message produced via
wait_for_dev() should be displayed anyway), but it could also
be for any other reason (e.g. /dev/resume not existing).

Therefore, it is best to use a more generic error message.

Also a minor tab->space conversion in the near vacinity of
the real change.

modules.d/99base/init

index fc00e4feab520e3e93cec95b2f29101cd5fe763d..1e5444988a79ccd616d3053fb6a30126bfd3022c 100755 (executable)
@@ -259,16 +259,16 @@ while :; do
     fi
 
     if [ $main_loop -gt $(($RDRETRY/2)) ]; then
-       for job in $hookdir/initqueue/timeout/*.sh; do
+        for job in $hookdir/initqueue/timeout/*.sh; do
             [ -e "$job" ] || break
             job=$job . $job
             main_loop=0
-       done
+        done
     fi
 
     main_loop=$(($main_loop+1))
     [ $main_loop -gt $RDRETRY ] \
-        && { flock -s 9 ; emergency_shell "No root device \"$root\" found"; } 9>/.console_lock
+        && { flock -s 9 ; emergency_shell "Unable to process initqueue"; } 9>/.console_lock
 done
 unset job
 unset queuetriggered