Blame 0059-systemd-switch-root.service-do-not-require-shutdown-.patch

Harald Hoyer 35271e
From 41153ca4f2163d2ede2d269e2a5388d7a4b73621 Mon Sep 17 00:00:00 2001
Harald Hoyer 35271e
From: Harald Hoyer <harald@redhat.com>
Harald Hoyer 35271e
Date: Wed, 16 May 2012 11:22:28 +0200
Harald Hoyer 35271e
Subject: [PATCH] systemd/switch-root.service: do not require shutdown and
Harald Hoyer 35271e
 isolate to default
Harald Hoyer 35271e
Harald Hoyer 35271e
do not require shutdown.target and final.target
Harald Hoyer 35271e
Harald Hoyer 35271e
After switch-root isolate to the default target. This will load the
Harald Hoyer 35271e
default target in the real root after systemd deserializes.
Harald Hoyer 35271e
---
Harald Hoyer 35271e
 modules.d/98systemd/switch-root.service |    3 +--
Harald Hoyer 35271e
 1 file changed, 1 insertion(+), 2 deletions(-)
Harald Hoyer 35271e
Harald Hoyer 35271e
diff --git a/modules.d/98systemd/switch-root.service b/modules.d/98systemd/switch-root.service
Harald Hoyer 35271e
index f72739e..0c41eb0 100644
Harald Hoyer 35271e
--- a/modules.d/98systemd/switch-root.service
Harald Hoyer 35271e
+++ b/modules.d/98systemd/switch-root.service
Harald Hoyer 35271e
@@ -8,10 +8,9 @@
Harald Hoyer 35271e
 [Unit]
Harald Hoyer 35271e
 Description=Switch Root
Harald Hoyer 35271e
 DefaultDependencies=no
Harald Hoyer 35271e
-Requires=shutdown.target final.target
Harald Hoyer 35271e
-After=shutdown.target final.target
Harald Hoyer 35271e
 
Harald Hoyer 35271e
 [Service]
Harald Hoyer 35271e
 Type=oneshot
Harald Hoyer 35271e
 EnvironmentFile=/etc/switch-root.conf
Harald Hoyer 35271e
 ExecStart=/usr/bin/systemctl --force switch-root ${NEWROOT} ${NEWINIT}
Harald Hoyer 35271e
+ExecStopPost=-/usr/bin/systemctl isolate default.target