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

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