initqueue-finished: fail also on empty queue
authorHarald Hoyer <harald@redhat.com>
Tue, 15 Sep 2009 09:11:18 +0000 (11:11 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 15 Sep 2009 13:00:24 +0000 (15:00 +0200)
modules.d/99base/dracut-lib.sh

index cbe70cf..e0ca892 100644 (file)
@@ -38,7 +38,7 @@ source_all() {
 
 check_finished() {
     local f
-    for f in /initqueue-finished/*.sh; do [ -f "$f" ] && { ( . "$f" ) || return 1; } ; done
+    for f in /initqueue-finished/*.sh; do { [ -f "$f" ] && ( . "$f" ) ; } || return 1 ; done
     return 0
 }
 
@@ -115,8 +115,6 @@ incol2() {
 }
 
 udevsettle() {
-    local exit_if_exists;
-
     [ -z "$UDEVVERSION" ] && UDEVVERSION=$(udevadm --version)
 
     if [ $UDEVVERSION -ge 143 ]; then