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

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