From: Harald Hoyer Date: Fri, 25 Sep 2015 15:07:07 +0000 (-0400) Subject: base/dracut-lib.sh:info() be more quiet X-Git-Tag: RHEL-7.2~10 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fe74a7069bb24ecfb8d2d948955236ff31ae7571;p=thirdparty%2Fdracut.git base/dracut-lib.sh:info() be more quiet --- diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index b6593a067..50bcf8406 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -61,7 +61,9 @@ else } info() { - echo "$*" >&2 + check_quiet + [ "$DRACUT_QUIET" != "yes" ] && \ + echo "$*" >&2 } fi @@ -461,9 +463,11 @@ check_quiet() { DRACUT_QUIET="yes" getargbool 0 rd.info -d -y rdinfo && DRACUT_QUIET="no" getargbool 0 rd.debug -d -y rdinitdebug && DRACUT_QUIET="no" - getarg quiet || DRACUT_QUIET="yes" - a=$(getarg loglevel=) - [ -n "$a" ] && [ $a -ge 28 ] && DRACUT_QUIET="yes" + if [ -z "$DRACUT_SYSTEMD" ]; then + getarg quiet || DRACUT_QUIET="yes" + a=$(getarg loglevel=) + [ -n "$a" ] && [ $a -ge 28 ] && DRACUT_QUIET="yes" + fi export DRACUT_QUIET fi }