|
|
@ -11,12 +11,13 @@ DefaultDependencies=no |
|
|
|
ConditionPathExists=/etc/initrd-release |
|
|
|
ConditionPathExists=/etc/initrd-release |
|
|
|
OnFailure=emergency.service |
|
|
|
OnFailure=emergency.service |
|
|
|
After=initrd-switch-root.target |
|
|
|
After=initrd-switch-root.target |
|
|
|
|
|
|
|
AllowIsolate=yes |
|
|
|
|
|
|
|
|
|
|
|
[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 --no-block --force switch-root ${NEWROOT} ${NEWINIT} |
|
|
|
ExecStopPost=-/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 |
|
|
|