From f60cd2593f39b381be3948811a20107029e717d0 Mon Sep 17 00:00:00 2001 From: Harald Hoyer 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