Blame SOURCES/0497-Revert-systemd-dracut-initqueue.sh-don-t-go-into-eme.patch

18971c
From fb008ce6656f0efb10b3aba4d3740db302b4e683 Mon Sep 17 00:00:00 2001
18971c
From: Lukas Nykryn <lnykryn@redhat.com>
18971c
Date: Wed, 7 Jun 2017 15:05:44 +0200
18971c
Subject: [PATCH] Revert "systemd/dracut-initqueue.sh: don't go into emergency"
18971c
18971c
This reverts commit 4c5f1b3b4a3b303b3eb19b0a16122b4fc552e089.
18971c
18971c
Resolves: #1396865
18971c
---
18971c
 modules.d/98systemd/dracut-initqueue.sh | 6 +++++-
18971c
 1 file changed, 5 insertions(+), 1 deletion(-)
18971c
18971c
diff --git a/modules.d/98systemd/dracut-initqueue.sh b/modules.d/98systemd/dracut-initqueue.sh
18971c
index c12531e2..5822556b 100755
18971c
--- a/modules.d/98systemd/dracut-initqueue.sh
18971c
+++ b/modules.d/98systemd/dracut-initqueue.sh
18971c
@@ -68,7 +68,11 @@ while :; do
18971c
 
18971c
     main_loop=$(($main_loop+1))
18971c
     if [ $main_loop -gt $RDRETRY ]; then
18971c
-        # let systemd go into emergency mode, if it cannot boot
18971c
+        if ! [ -f /sysroot/etc/fstab ] || ! [ -e /sysroot/sbin/init ] ; then
18971c
+            action_on_fail "Could not boot." && break
18971c
+        fi
18971c
+        warn "Not all disks have been found."
18971c
+        warn "You might want to regenerate your initramfs."
18971c
         break
18971c
     fi
18971c
 done