]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
99base: Don't let vinfo return 1
authorArnaud Rebillout <arnaud.rebillout@collabora.com>
Tue, 28 May 2019 03:46:03 +0000 (10:46 +0700)
committerHarald Hoyer <harald@hoyer.xyz>
Fri, 19 Jul 2019 14:24:20 +0000 (16:24 +0200)
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>
modules.d/99base/dracut-lib.sh

index ed84d7440593a1691b926439fa3ba13e829c0978..207a2b5cb5f262e628bb9ef2ff37541ef51f366b 100755 (executable)
@@ -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