systemd/initrd-switch-root.service: add back "--force" to switch-root

otherwise systemd does umount /run et.al.
master
Harald Hoyer 2012-07-11 16:36:05 +02:00
parent f6c2faebfa
commit 2499c305f9
1 changed files with 3 additions and 1 deletions

View File

@ -16,8 +16,10 @@ Before=systemd-journal-flush.service
[Service]
Type=oneshot
EnvironmentFile=/run/initramfs/switch-root.conf
ExecStart=/usr/bin/systemctl switch-root ${NEWROOT} ${NEWINIT}
# 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
StandardInput=null
StandardOutput=null
StandardError=null