systemd: fixed initrd-switch-root.service
parent
2723ebba9a
commit
f60cd2593f
|
@ -10,11 +10,13 @@ Description=Switch Root
|
||||||
DefaultDependencies=no
|
DefaultDependencies=no
|
||||||
ConditionPathExists=/etc/initrd-release
|
ConditionPathExists=/etc/initrd-release
|
||||||
OnFailure=emergency.service
|
OnFailure=emergency.service
|
||||||
|
After=initrd-switch-root.target
|
||||||
|
Before=systemd-journal-flush.service
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=oneshot
|
Type=oneshot
|
||||||
EnvironmentFile=/run/initramfs/switch-root.conf
|
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
|
ExecStopPost=-/usr/bin/systemctl stop systemd-journald.service
|
||||||
StandardInput=null
|
StandardInput=null
|
||||||
StandardOutput=null
|
StandardOutput=null
|
||||||
|
|
Loading…
Reference in New Issue