dinfo print only when verbose defined
parent
155c171d88
commit
84ffb877fd
2
dracut
2
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
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ dwarning() {
|
|||
}
|
||||
|
||||
dinfo() {
|
||||
echo "I: $@" >&2
|
||||
[[ $beverbose ]] && echo "I: $@" >&2
|
||||
}
|
||||
|
||||
derror() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue