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

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