]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd/dracut-initqueue.sh: fixed waiting in the loop if PW asked
authorHarald Hoyer <harald@redhat.com>
Thu, 5 Dec 2013 17:38:35 +0000 (18:38 +0100)
committerHarald Hoyer <harald@redhat.com>
Thu, 5 Dec 2013 17:38:35 +0000 (18:38 +0100)
continue the main loop instead of the for loop, if a password is
currently asked

modules.d/98systemd/dracut-initqueue.sh

index 64e815410d421cc89de0b5c0c13c61b5f8a391d5..1e05dcd03b4a305ae05a7107c4fd5345233b2915 100755 (executable)
@@ -53,7 +53,7 @@ while :; do
     sleep 0.5
 
     for i in /run/systemd/ask-password/ask.*; do
-        [ -e "$i" ] && continue
+        [ -e "$i" ] && continue 2
     done
 
     if [ $main_loop -gt $((2*$RDRETRY/3)) ]; then