chiark / gitweb /
units: also add journalctl suggestion to emergency.service
authorLennart Poettering <lennart@poettering.net>
Mon, 22 Oct 2012 22:03:26 +0000 (00:03 +0200)
committerLennart Poettering <lennart@poettering.net>
Mon, 22 Oct 2012 22:12:33 +0000 (00:12 +0200)
More often than not we enter emergency.service due to fsck failure, so
it makes sense to direct people to the journal to debug those.

units/emergency.service.in

index 36db70728075c70c4d1e70933a7a0e2f0f81ac1e..1815f9d80f4aa4ebc9f953b19eab3105e1e157a5 100644 (file)
@@ -16,7 +16,7 @@ Before=shutdown.target
 Environment=HOME=/root
 WorkingDirectory=/root
 ExecStartPre=-/bin/plymouth quit
-ExecStartPre=-/bin/echo 'Welcome to emergency mode. Use "systemctl default" or ^D to enter default mode.'
+ExecStartPre=-/bin/echo -e 'Welcome to emergency mode! Type "systemctl default" or ^D to enter default mode.\\nType "journalctl -b" to view system logs. Type "systemctl reboot" to reboot.'
 ExecStart=-/sbin/sulogin
 ExecStopPost=@SYSTEMCTL@ --fail --no-block default
 Type=idle