chiark / gitweb /
resolve: add distinct bus error code for hosts that exist but lack A or AAAA records
[elogind.git] / units / emergency.service.in
index 94c090f654be34b42cf8014ce255dbad86ae0ca1..91fc1bbf51fd4a3baba0eaa0931e554edf0ab38e 100644 (file)
@@ -17,8 +17,7 @@ Environment=HOME=/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" to try again\\nto boot into default mode.'
-ExecStart=-/sbin/sulogin
-ExecStopPost=@SYSTEMCTL@ --fail --no-block default
+ExecStart=-/bin/sh -c "/sbin/sulogin; @SYSTEMCTL@ --fail --no-block default"
 Type=idle
 StandardInput=tty-force
 StandardOutput=inherit