Blame 0029-systemd-do-not-exit-the-initqueue-if-systemd-asks-a-.patch

Harald Hoyer 4734ec
From 7e4f74f5040fc3f4e7646695b54c5c11b0b95c62 Mon Sep 17 00:00:00 2001
Harald Hoyer 4734ec
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 4734ec
Date: Mon, 11 Nov 2013 16:57:32 +0100
Harald Hoyer 4734ec
Subject: [PATCH] systemd: do not exit the initqueue, if systemd asks a
Harald Hoyer 4734ec
 password
Harald Hoyer 4734ec
Harald Hoyer 4734ec
this prevents bailing out the initqueue, while passwords are still to be
Harald Hoyer 4734ec
asked
Harald Hoyer 4734ec
---
Harald Hoyer 4734ec
 modules.d/98systemd/dracut-initqueue.sh | 4 ++++
Harald Hoyer 4734ec
 1 file changed, 4 insertions(+)
Harald Hoyer 4734ec
Harald Hoyer 4734ec
diff --git a/modules.d/98systemd/dracut-initqueue.sh b/modules.d/98systemd/dracut-initqueue.sh
Harald Hoyer 4734ec
index d7ebf2b..64e8154 100755
Harald Hoyer 4734ec
--- a/modules.d/98systemd/dracut-initqueue.sh
Harald Hoyer 4734ec
+++ b/modules.d/98systemd/dracut-initqueue.sh
Harald Hoyer 4734ec
@@ -52,6 +52,10 @@ while :; do
Harald Hoyer 4734ec
     # no more udev jobs and queues empty.
Harald Hoyer 4734ec
     sleep 0.5
Harald Hoyer 4734ec
 
Harald Hoyer 4734ec
+    for i in /run/systemd/ask-password/ask.*; do
Harald Hoyer 4734ec
+        [ -e "$i" ] && continue
Harald Hoyer 4734ec
+    done
Harald Hoyer 4734ec
+
Harald Hoyer 4734ec
     if [ $main_loop -gt $((2*$RDRETRY/3)) ]; then
Harald Hoyer 4734ec
         for job in $hookdir/initqueue/timeout/*.sh; do
Harald Hoyer 4734ec
             [ -e "$job" ] || break