units: also add journalctl suggestion to emergency.service

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.
This commit is contained in:
Lennart Poettering
2012-10-23 00:03:26 +02:00
parent 74dc2b17e6
commit 4474d8abd0
+1 -1
View 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