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

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