diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh index ddb69549..e46e456d 100755 --- a/modules.d/99base/dracut-lib.sh +++ b/modules.d/99base/dracut-lib.sh @@ -316,6 +316,9 @@ check_quiet() { getargbool 0 rd.info -y rdinfo && DRACUT_QUIET="no" getargbool 0 rd.debug -y rdinitdebug && DRACUT_QUIET="no" getarg quiet || DRACUT_QUIET="yes" + a=$(getarg loglevel=) + [ -n "$a" ] && [ $a -ge 28 ] && DRACUT_QUIET="yes" + export DRACUT_QUIET fi } diff --git a/modules.d/99base/init.sh b/modules.d/99base/init.sh index cba2e1ab..5807b126 100755 --- a/modules.d/99base/init.sh +++ b/modules.d/99base/init.sh @@ -39,12 +39,6 @@ fi setdebug -if [ "$RD_DEBUG" = "yes" ]; then - getarg quiet && DRACUT_QUIET="yes" - a=$(getarg loglevel=) - [ -n "$a" ] && [ $a -ge 8 ] && unset DRACUT_QUIET -fi - if ! ismounted /dev; then mount -t devtmpfs -o mode=0755,nosuid,strictatime devtmpfs /dev >/dev/null fi