sulogin-shell: avoid heredocs

They require a writable /tmp dir (in the bash implementation).
Let's use echo, and not 'echo -e' since that doesn't seem to be completely
portable.

Fixes #6052.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2017-05-30 17:03:25 -04:00
parent 03c3c52040
commit ce241a493f
1 changed files with 3 additions and 5 deletions

View File

@ -4,11 +4,9 @@ if [ -x /bin/plymouth ]; then
/bin/plymouth --wait quit
fi
cat <<EOF
You are in $1 mode. After logging in, type "journalctl -xb" to view
system logs, "systemctl reboot" to reboot, "systemctl default" or ^D to
boot into default mode.
EOF
echo "You are in $1 mode. After logging in, type \"journalctl -xb\" to view"
echo "system logs, \"systemctl reboot\" to reboot, \"systemctl default\" or ^D to boot"
echo "into default mode."
@SULOGIN@
@SYSTEMCTL@ --job-mode=fail --no-block default