From: Arnaud Rebillout Date: Tue, 28 May 2019 03:46:03 +0000 (+0700) Subject: 99base: Don't let vinfo return 1 X-Git-Tag: 050~184 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c30070c8f503fc373268912890df2456da3de1fd;p=thirdparty%2Fdracut.git 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 --- diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index ed84d7440..207a2b5cb 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -70,7 +70,7 @@ if [ -z "$DRACUT_SYSTEMD" ]; then check_quiet echo "<30>dracut: $*" > /dev/kmsg [ "$DRACUT_QUIET" != "yes" ] && \ - echo "dracut: $*" >&2 + echo "dracut: $*" >&2 || : } else