]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
systemd: fixed initrd-switch-root.service
authorHarald Hoyer <harald@redhat.com>
Wed, 11 Jul 2012 13:25:30 +0000 (15:25 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 11 Jul 2012 13:25:30 +0000 (15:25 +0200)
modules.d/98systemd/initrd-switch-root.service

index 493b0852068bd436105071fa5fa4a69bd7ec81e9..bdc45875c26a3a096fad9cbf9981fbcaa9b32061 100644 (file)
@@ -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