Blame SOURCES/0429-systemd-let-booting-work-after-exiting-emergency.patch

712866
From fd8506b5da5e81736f408bc3c4c801544a38899e Mon Sep 17 00:00:00 2001
712866
From: Harald Hoyer <harald@redhat.com>
712866
Date: Thu, 30 Jun 2016 16:34:06 +0200
712866
Subject: [PATCH] systemd: let booting work after exiting emergency
712866
712866
If the user managed to mount /sysroot, let it work
712866
---
712866
 modules.d/98systemd/dracut-cmdline-ask.service | 1 -
712866
 modules.d/98systemd/dracut-cmdline.service     | 1 -
712866
 modules.d/98systemd/dracut-emergency.service   | 2 --
712866
 modules.d/98systemd/dracut-initqueue.service   | 1 -
712866
 modules.d/98systemd/dracut-mount.service       | 1 -
712866
 modules.d/98systemd/dracut-pre-mount.service   | 1 -
712866
 modules.d/98systemd/dracut-pre-pivot.service   | 1 -
712866
 modules.d/98systemd/dracut-pre-trigger.service | 1 -
712866
 modules.d/98systemd/dracut-pre-udev.service    | 1 -
712866
 modules.d/98systemd/emergency.service          | 7 +++----
712866
 10 files changed, 3 insertions(+), 14 deletions(-)
712866
712866
diff --git a/modules.d/98systemd/dracut-cmdline-ask.service b/modules.d/98systemd/dracut-cmdline-ask.service
5c6c2a
index 3d489a4e..f9dd3790 100644
712866
--- a/modules.d/98systemd/dracut-cmdline-ask.service
712866
+++ b/modules.d/98systemd/dracut-cmdline-ask.service
712866
@@ -16,7 +16,6 @@ Wants=systemd-journald.socket
712866
 ConditionPathExists=/etc/initrd-release
712866
 ConditionKernelCommandLine=rd.cmdline=ask
712866
 Conflicts=shutdown.target emergency.target
712866
-Before=shutdown.target emergency.target
712866
 
712866
 [Service]
712866
 Environment=DRACUT_SYSTEMD=1
712866
diff --git a/modules.d/98systemd/dracut-cmdline.service b/modules.d/98systemd/dracut-cmdline.service
5c6c2a
index 7f0835b4..e4797ca3 100644
712866
--- a/modules.d/98systemd/dracut-cmdline.service
712866
+++ b/modules.d/98systemd/dracut-cmdline.service
712866
@@ -21,7 +21,6 @@ ConditionKernelCommandLine=|rd.break=cmdline
712866
 ConditionKernelCommandLine=|resume
712866
 ConditionKernelCommandLine=|noresume
712866
 Conflicts=shutdown.target emergency.target
712866
-Before=shutdown.target emergency.target
712866
 
712866
 [Service]
712866
 Environment=DRACUT_SYSTEMD=1
712866
diff --git a/modules.d/98systemd/dracut-emergency.service b/modules.d/98systemd/dracut-emergency.service
5c6c2a
index 5c014110..183f3af5 100644
712866
--- a/modules.d/98systemd/dracut-emergency.service
712866
+++ b/modules.d/98systemd/dracut-emergency.service
712866
@@ -12,10 +12,8 @@ Description=Dracut Emergency Shell
712866
 DefaultDependencies=no
712866
 After=systemd-vconsole-setup.service
712866
 Wants=systemd-vconsole-setup.service
712866
-Conflicts=emergency.service emergency.target
712866
 ConditionPathExists=!/lib/dracut/no-emergency-shell
712866
 Conflicts=shutdown.target emergency.target
712866
-Before=shutdown.target emergency.target
712866
 
712866
 [Service]
712866
 Environment=HOME=/
712866
diff --git a/modules.d/98systemd/dracut-initqueue.service b/modules.d/98systemd/dracut-initqueue.service
5c6c2a
index 6340dd4d..46d041e8 100644
712866
--- a/modules.d/98systemd/dracut-initqueue.service
712866
+++ b/modules.d/98systemd/dracut-initqueue.service
712866
@@ -24,7 +24,6 @@ ConditionPathExistsGlob=|/lib/dracut/hooks/initqueue/online/*.sh
712866
 ConditionPathExistsGlob=|/lib/dracut/hooks/initqueue/timeout/*.sh
712866
 ConditionKernelCommandLine=|rd.break=initqueue
712866
 Conflicts=shutdown.target emergency.target
712866
-Before=shutdown.target emergency.target
712866
 
712866
 [Service]
712866
 Environment=DRACUT_SYSTEMD=1
712866
diff --git a/modules.d/98systemd/dracut-mount.service b/modules.d/98systemd/dracut-mount.service
5c6c2a
index 2e1e47b9..e8e33fbb 100644
712866
--- a/modules.d/98systemd/dracut-mount.service
712866
+++ b/modules.d/98systemd/dracut-mount.service
712866
@@ -16,7 +16,6 @@ ConditionPathExists=/etc/initrd-release
712866
 ConditionDirectoryNotEmpty=|/lib/dracut/hooks/mount
712866
 ConditionKernelCommandLine=|rd.break=mount
712866
 Conflicts=shutdown.target emergency.target
712866
-Before=shutdown.target emergency.target
712866
 
712866
 [Service]
712866
 Environment=DRACUT_SYSTEMD=1
712866
diff --git a/modules.d/98systemd/dracut-pre-mount.service b/modules.d/98systemd/dracut-pre-mount.service
5c6c2a
index ed67f9df..48c9b400 100644
712866
--- a/modules.d/98systemd/dracut-pre-mount.service
712866
+++ b/modules.d/98systemd/dracut-pre-mount.service
712866
@@ -18,7 +18,6 @@ ConditionPathExists=/etc/initrd-release
712866
 ConditionDirectoryNotEmpty=|/lib/dracut/hooks/pre-mount
712866
 ConditionKernelCommandLine=|rd.break=pre-mount
712866
 Conflicts=shutdown.target emergency.target
712866
-Before=shutdown.target emergency.target
712866
 
712866
 [Service]
712866
 Environment=DRACUT_SYSTEMD=1
712866
diff --git a/modules.d/98systemd/dracut-pre-pivot.service b/modules.d/98systemd/dracut-pre-pivot.service
5c6c2a
index 1faeb78b..ae1f155d 100644
712866
--- a/modules.d/98systemd/dracut-pre-pivot.service
712866
+++ b/modules.d/98systemd/dracut-pre-pivot.service
712866
@@ -17,7 +17,6 @@ Wants=remote-fs.target
712866
 After=remote-fs.target
712866
 ConditionPathExists=/etc/initrd-release
712866
 Conflicts=shutdown.target emergency.target
712866
-Before=shutdown.target emergency.target
712866
 
712866
 [Service]
712866
 Environment=DRACUT_SYSTEMD=1
712866
diff --git a/modules.d/98systemd/dracut-pre-trigger.service b/modules.d/98systemd/dracut-pre-trigger.service
5c6c2a
index f1980368..5657450e 100644
712866
--- a/modules.d/98systemd/dracut-pre-trigger.service
712866
+++ b/modules.d/98systemd/dracut-pre-trigger.service
712866
@@ -18,7 +18,6 @@ ConditionPathExists=/etc/initrd-release
712866
 ConditionDirectoryNotEmpty=|/lib/dracut/hooks/pre-trigger
712866
 ConditionKernelCommandLine=|rd.break=pre-trigger
712866
 Conflicts=shutdown.target emergency.target
712866
-Before=shutdown.target emergency.target
712866
 
712866
 [Service]
712866
 Environment=DRACUT_SYSTEMD=1
712866
diff --git a/modules.d/98systemd/dracut-pre-udev.service b/modules.d/98systemd/dracut-pre-udev.service
5c6c2a
index 7fb33044..a554eb79 100644
712866
--- a/modules.d/98systemd/dracut-pre-udev.service
712866
+++ b/modules.d/98systemd/dracut-pre-udev.service
712866
@@ -21,7 +21,6 @@ ConditionKernelCommandLine=|rd.driver.blacklist
712866
 ConditionKernelCommandLine=|rd.driver.pre
712866
 ConditionKernelCommandLine=|rd.driver.post
712866
 Conflicts=shutdown.target emergency.target
712866
-Before=shutdown.target emergency.target
712866
 
712866
 [Service]
712866
 Environment=DRACUT_SYSTEMD=1
712866
diff --git a/modules.d/98systemd/emergency.service b/modules.d/98systemd/emergency.service
5c6c2a
index 5c2c1c70..5da3aa31 100644
712866
--- a/modules.d/98systemd/emergency.service
712866
+++ b/modules.d/98systemd/emergency.service
712866
@@ -14,21 +14,20 @@ After=systemd-vconsole-setup.service
712866
 Wants=systemd-vconsole-setup.service
712866
 ConditionPathExists=!/lib/dracut/no-emergency-shell
712866
 Conflicts=shutdown.target
712866
-Before=shutdown.target
712866
 
712866
 [Service]
712866
 Environment=HOME=/
712866
 Environment=DRACUT_SYSTEMD=1
712866
 Environment=NEWROOT=/sysroot
712866
 WorkingDirectory=/
712866
-ExecStart=/bin/dracut-emergency
712866
-ExecStopPost=-/usr/bin/systemctl --fail --no-block default
712866
-Type=oneshot
712866
+ExecStart=-/bin/dracut-emergency
712866
+ExecStopPost=-/usr/bin/systemctl --no-block isolate default.target
712866
 StandardInput=tty-force
712866
 StandardOutput=inherit
712866
 StandardError=inherit
712866
 KillMode=process
712866
 IgnoreSIGPIPE=no
712866
+TimeoutStartSec=0
712866
 
712866
 # Bash ignores SIGTERM, so we send SIGHUP instead, to ensure that bash
712866
 # terminates cleanly.