From: Lennart Poettering Date: Mon, 22 Oct 2012 22:03:26 +0000 (+0200) Subject: units: also add journalctl suggestion to emergency.service X-Git-Tag: v195~4 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=4474d8abd09f8779b1363726bd80e59e7f9096c6;hp=74dc2b17e6086a5b9c4260e7a8c1a8a75888ac73 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. --- diff --git a/units/emergency.service.in b/units/emergency.service.in index 36db70728..1815f9d80 100644 --- a/units/emergency.service.in +++ b/units/emergency.service.in @@ -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