|
Harald Hoyer |
802052 |
From cad10a7f8043752bb0c8d411ee7a30c641d6622c Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
802052 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
802052 |
Date: Wed, 9 May 2012 11:42:39 +0200
|
|
Harald Hoyer |
802052 |
Subject: [PATCH] base/init.sh: set DRACUT_QUIET only in dracut-lib.sh
|
|
Harald Hoyer |
802052 |
|
|
Harald Hoyer |
802052 |
---
|
|
Harald Hoyer |
802052 |
modules.d/99base/dracut-lib.sh | 3 +++
|
|
Harald Hoyer |
802052 |
modules.d/99base/init.sh | 6 ------
|
|
Harald Hoyer |
802052 |
2 Dateien geändert, 3 Zeilen hinzugefügt(+), 6 Zeilen entfernt(-)
|
|
Harald Hoyer |
802052 |
|
|
Harald Hoyer |
802052 |
diff --git a/modules.d/99base/dracut-lib.sh b/modules.d/99base/dracut-lib.sh
|
|
Harald Hoyer |
802052 |
index ddb6954..e46e456 100755
|
|
Harald Hoyer |
802052 |
--- a/modules.d/99base/dracut-lib.sh
|
|
Harald Hoyer |
802052 |
+++ b/modules.d/99base/dracut-lib.sh
|
|
Harald Hoyer |
802052 |
@@ -316,6 +316,9 @@ check_quiet() {
|
|
Harald Hoyer |
802052 |
getargbool 0 rd.info -y rdinfo && DRACUT_QUIET="no"
|
|
Harald Hoyer |
802052 |
getargbool 0 rd.debug -y rdinitdebug && DRACUT_QUIET="no"
|
|
Harald Hoyer |
802052 |
getarg quiet || DRACUT_QUIET="yes"
|
|
Harald Hoyer |
802052 |
+ a=$(getarg loglevel=)
|
|
Harald Hoyer |
802052 |
+ [ -n "$a" ] && [ $a -ge 28 ] && DRACUT_QUIET="yes"
|
|
Harald Hoyer |
802052 |
+ export DRACUT_QUIET
|
|
Harald Hoyer |
802052 |
fi
|
|
Harald Hoyer |
802052 |
}
|
|
Harald Hoyer |
802052 |
|
|
Harald Hoyer |
802052 |
diff --git a/modules.d/99base/init.sh b/modules.d/99base/init.sh
|
|
Harald Hoyer |
802052 |
index cba2e1a..5807b12 100755
|
|
Harald Hoyer |
802052 |
--- a/modules.d/99base/init.sh
|
|
Harald Hoyer |
802052 |
+++ b/modules.d/99base/init.sh
|
|
Harald Hoyer |
802052 |
@@ -39,12 +39,6 @@ fi
|
|
Harald Hoyer |
802052 |
|
|
Harald Hoyer |
802052 |
setdebug
|
|
Harald Hoyer |
802052 |
|
|
Harald Hoyer |
802052 |
-if [ "$RD_DEBUG" = "yes" ]; then
|
|
Harald Hoyer |
802052 |
- getarg quiet && DRACUT_QUIET="yes"
|
|
Harald Hoyer |
802052 |
- a=$(getarg loglevel=)
|
|
Harald Hoyer |
802052 |
- [ -n "$a" ] && [ $a -ge 8 ] && unset DRACUT_QUIET
|
|
Harald Hoyer |
802052 |
-fi
|
|
Harald Hoyer |
802052 |
-
|
|
Harald Hoyer |
802052 |
if ! ismounted /dev; then
|
|
Harald Hoyer |
802052 |
mount -t devtmpfs -o mode=0755,nosuid,strictatime devtmpfs /dev >/dev/null
|
|
Harald Hoyer |
802052 |
fi
|