dracut/0080-systemd-fixed-initrd-switch-root.service.patch
Harald Hoyer 08211a18b7 dracut-020-83.git20120711
- more systemd journal fixes
- nfs module fix
- install also /lib/modprobe.d/*
- fixed dracut-shutdown service
- safeguards for dracut-install
- for --include also copy symlinks
2012-07-11 16:05:12 +02:00

29 lines
1.1 KiB
Diff

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