From: Harald Hoyer Date: Thu, 12 Jul 2012 06:56:17 +0000 (+0200) Subject: systemd/initrd-switch-root.service: add some more dependencies X-Git-Tag: 021~21 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e6bec9b793314d248085e7dd50d9d79d9a01486e;p=thirdparty%2Fdracut.git systemd/initrd-switch-root.service: add some more dependencies --- diff --git a/modules.d/98systemd/initrd-switch-root.service b/modules.d/98systemd/initrd-switch-root.service index e38f04dcc..f9fd10b7e 100644 --- a/modules.d/98systemd/initrd-switch-root.service +++ b/modules.d/98systemd/initrd-switch-root.service @@ -12,14 +12,14 @@ ConditionPathExists=/etc/initrd-release OnFailure=emergency.service After=initrd-switch-root.target Before=systemd-journal-flush.service +Before=sysinit.target local-fs.target swap.target emergency.service emergency.target [Service] Type=oneshot EnvironmentFile=/run/initramfs/switch-root.conf # we have to use "--force" here, otherwise systemd would umount /run ExecStart=/usr/bin/systemctl --force switch-root ${NEWROOT} ${NEWINIT} -ExecStopPost=-/usr/bin/systemctl stop systemd-journald.service -ExecStopPost=-/bin/rm -f /run/initramfs/switch-root.conf +ExecStopPost=-/usr/bin/systemctl stop systemd-journald.service ; /bin/rm -f /run/initramfs/switch-root.conf StandardInput=null StandardOutput=null StandardError=null