systemd: fixed initrd-switch-root.service

master
Harald Hoyer 2012-07-11 15:25:30 +02:00
parent 2723ebba9a
commit f60cd2593f
1 changed files with 3 additions and 1 deletions

View File

@ -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