Blame SOURCES/0350-base-dracut-lib.sh-info-be-more-quiet.patch

64b87c
From fe74a7069bb24ecfb8d2d948955236ff31ae7571 Mon Sep 17 00:00:00 2001
64b87c
From: Harald Hoyer <harald@redhat.com>
64b87c
Date: Fri, 25 Sep 2015 11:07:07 -0400
64b87c
Subject: [PATCH] base/dracut-lib.sh:info() be more quiet
64b87c
64b87c
---
64b87c
 modules.d/99base/dracut-lib.sh | 12 ++++++++----
64b87c
 1 file changed, 8 insertions(+), 4 deletions(-)
64b87c
64b87c
diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
1755ca
index b6593a06..50bcf840 100755
64b87c
--- a/modules.d/99base/dracut-lib.sh
64b87c
+++ b/modules.d/99base/dracut-lib.sh
64b87c
@@ -61,7 +61,9 @@ else
64b87c
     }
64b87c
 
64b87c
     info() {
64b87c
-        echo "$*" >&2
64b87c
+        check_quiet
64b87c
+        [ "$DRACUT_QUIET" != "yes" ] && \
64b87c
+            echo "$*" >&2
64b87c
     }
64b87c
 
64b87c
 fi
64b87c
@@ -461,9 +463,11 @@ check_quiet() {
64b87c
         DRACUT_QUIET="yes"
64b87c
         getargbool 0 rd.info -d -y rdinfo && DRACUT_QUIET="no"
64b87c
         getargbool 0 rd.debug -d -y rdinitdebug && DRACUT_QUIET="no"
64b87c
-        getarg quiet || DRACUT_QUIET="yes"
64b87c
-        a=$(getarg loglevel=)
64b87c
-        [ -n "$a" ] && [ $a -ge 28 ] && DRACUT_QUIET="yes"
64b87c
+        if [ -z "$DRACUT_SYSTEMD" ]; then
64b87c
+            getarg quiet || DRACUT_QUIET="yes"
64b87c
+            a=$(getarg loglevel=)
64b87c
+            [ -n "$a" ] && [ $a -ge 28 ] && DRACUT_QUIET="yes"
64b87c
+        fi
64b87c
         export DRACUT_QUIET
64b87c
     fi
64b87c
 }