From 58dad7025b01d1c85d2f55116801681510172cb7 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Mon, 7 Mar 2011 12:54:47 +0100 Subject: [PATCH] dracut: more verbose logging --- dracut | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/dracut b/dracut index 6e6de1e27..ef729d9ee 100755 --- a/dracut +++ b/dracut @@ -23,6 +23,8 @@ # along with this program. If not, see . # +# store for logging +dracut_args="$@" usage() { # 80x25 linebreak here ^ @@ -224,6 +226,8 @@ fi dracutfunctions=$dracutbasedir/dracut-functions export dracutfunctions +dinfo "Executing $0 $dracut_args" + [[ $do_list = yes ]] && { for mod in $dracutbasedir/modules.d/*; do [[ -d $mod ]] || continue; @@ -383,7 +387,7 @@ if ! ( cd "$initdir"; find . |cpio -R 0:0 -H newc -o --quiet | \ derror "dracut: creation of $outfile failed" exit 1 fi - -[[ $beverbose = yes ]] && ls -lh "$outfile" +dinfo "Wrote $outfile" +dinfo $(ls -l "$outfile") exit 0 -- 2.47.3