Blame SOURCES/0041-systemd-do-not-exit-the-initqueue-if-systemd-asks-a-.patch

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