99base: Don't let vinfo return 1

When DRACUT_SYSTEMD is set and DRACUT_QUIET=yes, vinfo returns 1. This
is a problem for hooks which end with vinfo, as then the hook returns 1.
Especially problematic if this is a shutdown hook, as it will be
restarted again and again.

This commit fixes that.

Signed-off-by: Arnaud Rebillout <arnaud.rebillout@collabora.com>
master
Arnaud Rebillout 2019-05-28 10:46:03 +07:00 committed by Harald Hoyer
parent c8b35bf96a
commit c30070c8f5
1 changed files with 1 additions and 1 deletions

View File

@ -70,7 +70,7 @@ if [ -z "$DRACUT_SYSTEMD" ]; then
check_quiet check_quiet
echo "<30>dracut: $*" > /dev/kmsg echo "<30>dracut: $*" > /dev/kmsg
[ "$DRACUT_QUIET" != "yes" ] && \ [ "$DRACUT_QUIET" != "yes" ] && \
echo "dracut: $*" >&2 echo "dracut: $*" >&2 || :
} }


else else