units: don't fail if /root doesn't exist for shell units

As discussed on the ML:

http://lists.freedesktop.org/archives/systemd-devel/2016-January/035594.html
This commit is contained in:
Lennart Poettering 2016-01-17 17:25:42 +01:00
parent c15493f482
commit cde3d68750
3 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ Before=getty.target
[Service]
Environment=HOME=/root
WorkingDirectory=/root
WorkingDirectory=-/root
ExecStart=-@SULOGIN@
ExecStopPost=-@SYSTEMCTL@ poweroff
Type=idle

View File

@ -15,7 +15,7 @@ Before=shutdown.target
[Service]
Environment=HOME=/root
WorkingDirectory=/root
WorkingDirectory=-/root
ExecStartPre=-/bin/plymouth --wait quit
ExecStartPre=-/bin/echo -e 'Welcome to emergency mode! After logging in, type "journalctl -xb" to view\\nsystem logs, "systemctl reboot" to reboot, "systemctl default" or ^D to\\ntry again to boot into default mode.'
ExecStart=-/bin/sh -c "@SULOGIN@; @SYSTEMCTL@ --job-mode=fail --no-block default"

View File

@ -15,7 +15,7 @@ Before=shutdown.target
[Service]
Environment=HOME=/root
WorkingDirectory=/root
WorkingDirectory=-/root
ExecStartPre=-/bin/plymouth quit
ExecStartPre=-/bin/echo -e 'Welcome to emergency mode! After logging in, type "journalctl -xb" to view\\nsystem logs, "systemctl reboot" to reboot, "systemctl default" or ^D to\\nboot into default mode.'
ExecStart=-/bin/sh -c "@SULOGIN@; @SYSTEMCTL@ --job-mode=fail --no-block default"