Blame 0080-systemd-fixed-initrd-switch-root.service.patch
|
Harald Hoyer |
08211a |
From f60cd2593f39b381be3948811a20107029e717d0 Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
08211a |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
08211a |
Date: Wed, 11 Jul 2012 15:25:30 +0200
|
|
Harald Hoyer |
08211a |
Subject: [PATCH] systemd: fixed initrd-switch-root.service
|
|
Harald Hoyer |
08211a |
|
|
Harald Hoyer |
08211a |
---
|
|
Harald Hoyer |
08211a |
modules.d/98systemd/initrd-switch-root.service | 4 +++-
|
|
Harald Hoyer |
08211a |
1 file changed, 3 insertions(+), 1 deletion(-)
|
|
Harald Hoyer |
08211a |
|
|
Harald Hoyer |
08211a |
diff --git a/modules.d/98systemd/initrd-switch-root.service b/modules.d/98systemd/initrd-switch-root.service
|
|
Harald Hoyer |
08211a |
index 493b085..bdc4587 100644
|
|
Harald Hoyer |
08211a |
--- a/modules.d/98systemd/initrd-switch-root.service
|
|
Harald Hoyer |
08211a |
+++ b/modules.d/98systemd/initrd-switch-root.service
|
|
Harald Hoyer |
08211a |
@@ -10,11 +10,13 @@ Description=Switch Root
|
|
Harald Hoyer |
08211a |
DefaultDependencies=no
|
|
Harald Hoyer |
08211a |
ConditionPathExists=/etc/initrd-release
|
|
Harald Hoyer |
08211a |
OnFailure=emergency.service
|
|
Harald Hoyer |
08211a |
+After=initrd-switch-root.target
|
|
Harald Hoyer |
08211a |
+Before=systemd-journal-flush.service
|
|
Harald Hoyer |
08211a |
|
|
Harald Hoyer |
08211a |
[Service]
|
|
Harald Hoyer |
08211a |
Type=oneshot
|
|
Harald Hoyer |
08211a |
EnvironmentFile=/run/initramfs/switch-root.conf
|
|
Harald Hoyer |
08211a |
-ExecStart=/usr/bin/systemctl --force switch-root ${NEWROOT} ${NEWINIT}
|
|
Harald Hoyer |
08211a |
+ExecStart=/usr/bin/systemctl switch-root ${NEWROOT} ${NEWINIT}
|
|
Harald Hoyer |
08211a |
ExecStopPost=-/usr/bin/systemctl stop systemd-journald.service
|
|
Harald Hoyer |
08211a |
StandardInput=null
|
|
Harald Hoyer |
08211a |
StandardOutput=null
|