]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dinfo print only when verbose defined
authorAndreas Thienemann <andreas@bawue.net>
Wed, 20 May 2009 10:30:22 +0000 (12:30 +0200)
committerHarald Hoyer <harald@redhat.com>
Wed, 20 May 2009 10:30:22 +0000 (12:30 +0200)
dracut
dracut-functions

diff --git a/dracut b/dracut
index 1aeb0ad8fc4b01ebae4440550442c5b41da24b4a..58c50ec10f1e7cc112d446d9887df379828ff5c8 100755 (executable)
--- a/dracut
+++ b/dracut
@@ -96,7 +96,7 @@ hookdirs="pre-udev pre-mount pre-pivot mount"
 readonly initdir=$(mktemp -d -t initramfs.XXXXXX)
 trap 'rm -rf "$initdir"' 0 # clean up after ourselves no matter how we die.
 
-export initdir hookdirs dsrc dracutmodules modules debug
+export initdir hookdirs dsrc dracutmodules modules debug beverbose
 
 # Create some directory structure first
 for d in bin sbin usr/bin usr/sbin usr/lib etc proc sys sysroot dev/pts; do 
index 51dd29fa6b229a987fd6ae00db6587c104baff43..2beaef208edb851f88948e1ad65830b2297ff5b3 100755 (executable)
@@ -33,7 +33,7 @@ dwarning() {
 }
 
 dinfo() {
-    echo "I: $@" >&2
+    [[ $beverbose ]] && echo "I: $@" >&2
 }
 
 derror() {