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

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