systemd/initrd-switch-root.service: add some more dependencies
parent
982032fd26
commit
e6bec9b793
|
|
@ -12,14 +12,14 @@ ConditionPathExists=/etc/initrd-release
|
||||||
OnFailure=emergency.service
|
OnFailure=emergency.service
|
||||||
After=initrd-switch-root.target
|
After=initrd-switch-root.target
|
||||||
Before=systemd-journal-flush.service
|
Before=systemd-journal-flush.service
|
||||||
|
Before=sysinit.target local-fs.target swap.target emergency.service emergency.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
EnvironmentFile=/run/initramfs/switch-root.conf
|
EnvironmentFile=/run/initramfs/switch-root.conf
|
||||||
# we have to use "--force" here, otherwise systemd would umount /run
|
# we have to use "--force" here, otherwise systemd would umount /run
|
||||||
ExecStart=/usr/bin/systemctl --force switch-root ${NEWROOT} ${NEWINIT}
|
ExecStart=/usr/bin/systemctl --force switch-root ${NEWROOT} ${NEWINIT}
|
||||||
ExecStopPost=-/usr/bin/systemctl stop systemd-journald.service
|
ExecStopPost=-/usr/bin/systemctl stop systemd-journald.service ; /bin/rm -f /run/initramfs/switch-root.conf
|
||||||
ExecStopPost=-/bin/rm -f /run/initramfs/switch-root.conf
|
|
||||||
StandardInput=null
|
StandardInput=null
|
||||||
StandardOutput=null
|
StandardOutput=null
|
||||||
StandardError=null
|
StandardError=null
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue