]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd: do not exit the initqueue, if systemd asks a password
authorHarald Hoyer <harald@redhat.com>
Mon, 11 Nov 2013 15:57:32 +0000 (16:57 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 12 Nov 2013 16:02:44 +0000 (17:02 +0100)
this prevents bailing out the initqueue, while passwords are still to be
asked

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

index d7ebf2b2aa7f7c1998597987b0dc9fb8cdfa594b..64e815410d421cc89de0b5c0c13c61b5f8a391d5 100755 (executable)
@@ -52,6 +52,10 @@ while :; do
     # no more udev jobs and queues empty.
     sleep 0.5
 
+    for i in /run/systemd/ask-password/ask.*; do
+        [ -e "$i" ] && continue
+    done
+
     if [ $main_loop -gt $((2*$RDRETRY/3)) ]; then
         for job in $hookdir/initqueue/timeout/*.sh; do
             [ -e "$job" ] || break