]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(base): correct handling of quiet in loginit
authorBernhard M. Wiedemann <bwiedemann@suse.de>
Mon, 20 Mar 2023 07:42:26 +0000 (08:42 +0100)
committerLaszlo <laszlo.gombos@gmail.com>
Sun, 31 Mar 2024 12:41:08 +0000 (08:41 -0400)
dracut-lib.sh sets DRACUT_QUIET=no
and passes this to loginit

modules.d/99base/loginit.sh

index cdb305bebe271cbeefedf6678ecbbf6db6d98f62..7c47a5a702e78e6a47f0822aeed0772ae5670f37 100755 (executable)
@@ -18,6 +18,6 @@ while read -r line || [ -n "$line" ]; do
     fi
     echo "<31>dracut: $line" >&5
     # if "quiet" is specified we output to /dev/console
-    [ -n "$QUIET" ] || echo "dracut: $line"
+    [ "$QUIET" = "yes" ] || echo "dracut: $line"
     echo "$line" >&6
 done