systemd/initrd-switch-root.service: call switch-root with --no-block
authorHarald Hoyer <harald@redhat.com>
Tue, 17 Jul 2012 09:09:17 +0000 (11:09 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 17 Jul 2012 09:09:17 +0000 (11:09 +0200)
modules.d/98systemd/initrd-switch-root.service

index 7b59e15..7d1a648 100644 (file)
@@ -11,12 +11,13 @@ DefaultDependencies=no
 ConditionPathExists=/etc/initrd-release
 OnFailure=emergency.service
 After=initrd-switch-root.target
+AllowIsolate=yes
 
 [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}
+ExecStart=-/usr/bin/systemctl --no-block --force switch-root ${NEWROOT} ${NEWINIT}
 ExecStopPost=-/bin/rm -f /run/initramfs/switch-root.conf
 StandardInput=null
 StandardOutput=null