From: Harald Hoyer Date: Mon, 7 Mar 2011 11:54:47 +0000 (+0100) Subject: dracut: more verbose logging X-Git-Tag: 009~103 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=58dad7025b01d1c85d2f55116801681510172cb7;p=thirdparty%2Fdracut.git dracut: more verbose logging --- 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