|
Harald Hoyer |
3957aa |
From 54f1a77fb678c254eb460844442c2323f2ca9cfc Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
3957aa |
From: Colin Guthrie <colin@mageia.org>
|
|
Harald Hoyer |
3957aa |
Date: Sat, 31 Dec 2011 13:35:59 +0000
|
|
Harald Hoyer |
3957aa |
Subject: [PATCH] init: Fix bogus message about invalid root device.
|
|
Harald Hoyer |
3957aa |
|
|
Harald Hoyer |
3957aa |
When the initqueue cannot be processed, it might be about an invalid
|
|
Harald Hoyer |
3957aa |
root device (in which case a separate message produced via
|
|
Harald Hoyer |
3957aa |
wait_for_dev() should be displayed anyway), but it could also
|
|
Harald Hoyer |
3957aa |
be for any other reason (e.g. /dev/resume not existing).
|
|
Harald Hoyer |
3957aa |
|
|
Harald Hoyer |
3957aa |
Therefore, it is best to use a more generic error message.
|
|
Harald Hoyer |
3957aa |
|
|
Harald Hoyer |
3957aa |
Also a minor tab->space conversion in the near vacinity of
|
|
Harald Hoyer |
3957aa |
the real change.
|
|
Harald Hoyer |
3957aa |
---
|
|
Harald Hoyer |
3957aa |
modules.d/99base/init | 6 +++---
|
|
Harald Hoyer |
3957aa |
1 files changed, 3 insertions(+), 3 deletions(-)
|
|
Harald Hoyer |
3957aa |
|
|
Harald Hoyer |
3957aa |
diff --git a/modules.d/99base/init b/modules.d/99base/init
|
|
Harald Hoyer |
3957aa |
index fc00e4f..1e54449 100755
|
|
Harald Hoyer |
3957aa |
--- a/modules.d/99base/init
|
|
Harald Hoyer |
3957aa |
+++ b/modules.d/99base/init
|
|
Harald Hoyer |
3957aa |
@@ -259,16 +259,16 @@ while :; do
|
|
Harald Hoyer |
3957aa |
fi
|
|
Harald Hoyer |
3957aa |
|
|
Harald Hoyer |
3957aa |
if [ $main_loop -gt $(($RDRETRY/2)) ]; then
|
|
Harald Hoyer |
3957aa |
- for job in $hookdir/initqueue/timeout/*.sh; do
|
|
Harald Hoyer |
3957aa |
+ for job in $hookdir/initqueue/timeout/*.sh; do
|
|
Harald Hoyer |
3957aa |
[ -e "$job" ] || break
|
|
Harald Hoyer |
3957aa |
job=$job . $job
|
|
Harald Hoyer |
3957aa |
main_loop=0
|
|
Harald Hoyer |
3957aa |
- done
|
|
Harald Hoyer |
3957aa |
+ done
|
|
Harald Hoyer |
3957aa |
fi
|
|
Harald Hoyer |
3957aa |
|
|
Harald Hoyer |
3957aa |
main_loop=$(($main_loop+1))
|
|
Harald Hoyer |
3957aa |
[ $main_loop -gt $RDRETRY ] \
|
|
Harald Hoyer |
3957aa |
- && { flock -s 9 ; emergency_shell "No root device \"$root\" found"; } 9>/.console_lock
|
|
Harald Hoyer |
3957aa |
+ && { flock -s 9 ; emergency_shell "Unable to process initqueue"; } 9>/.console_lock
|
|
Harald Hoyer |
3957aa |
done
|
|
Harald Hoyer |
3957aa |
unset job
|
|
Harald Hoyer |
3957aa |
unset queuetriggered
|