]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd/initrd-switch-root.service: add some more dependencies
authorHarald Hoyer <harald@redhat.com>
Thu, 12 Jul 2012 06:56:17 +0000 (08:56 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 12 Jul 2012 06:56:17 +0000 (08:56 +0200)
modules.d/98systemd/initrd-switch-root.service

index e38f04dcc237172e105373e56811fe8b970abe90..f9fd10b7e9771d547f98a79ce9402c5793202b20 100644 (file)
@@ -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