From: Harald Hoyer Date: Wed, 11 Jul 2012 13:25:30 +0000 (+0200) Subject: systemd: fixed initrd-switch-root.service X-Git-Tag: 021~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f60cd2593f39b381be3948811a20107029e717d0;p=thirdparty%2Fdracut.git systemd: fixed initrd-switch-root.service --- diff --git a/modules.d/98systemd/initrd-switch-root.service b/modules.d/98systemd/initrd-switch-root.service index 493b08520..bdc45875c 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