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