mirror of
https://github.com/systemd/systemd.git
synced 2025-01-12 13:18:14 +03:00
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:
parent
c15493f482
commit
cde3d68750
@ -16,7 +16,7 @@ Before=getty.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment=HOME=/root
|
Environment=HOME=/root
|
||||||
WorkingDirectory=/root
|
WorkingDirectory=-/root
|
||||||
ExecStart=-@SULOGIN@
|
ExecStart=-@SULOGIN@
|
||||||
ExecStopPost=-@SYSTEMCTL@ poweroff
|
ExecStopPost=-@SYSTEMCTL@ poweroff
|
||||||
Type=idle
|
Type=idle
|
||||||
|
@ -15,7 +15,7 @@ Before=shutdown.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment=HOME=/root
|
Environment=HOME=/root
|
||||||
WorkingDirectory=/root
|
WorkingDirectory=-/root
|
||||||
ExecStartPre=-/bin/plymouth --wait quit
|
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.'
|
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"
|
ExecStart=-/bin/sh -c "@SULOGIN@; @SYSTEMCTL@ --job-mode=fail --no-block default"
|
||||||
|
@ -15,7 +15,7 @@ Before=shutdown.target
|
|||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Environment=HOME=/root
|
Environment=HOME=/root
|
||||||
WorkingDirectory=/root
|
WorkingDirectory=-/root
|
||||||
ExecStartPre=-/bin/plymouth quit
|
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.'
|
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"
|
ExecStart=-/bin/sh -c "@SULOGIN@; @SYSTEMCTL@ --job-mode=fail --no-block default"
|
||||||
|
Loading…
Reference in New Issue
Block a user