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

View file

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