previous -verbose is now -debug (set -x)
-verbose adds some information about the resulting initrd size
done;exit $$ret
testimage: all
- ./dracut -l -f test-$(shell uname -r).img $(shell uname -r)
+ ./dracut -v -l -f test-$(shell uname -r).img $(shell uname -r)
@echo wrote test-$(shell uname -r).img
-d|--drivers) modules_l="$2"; shift;;
-h|--help) echo "Usage: $0 [-f] <initramfs> <kernel-version>"
exit 1 ;;
- -v|--verbose) set -x;;
+ -d|--debug) set -x;;
+ -v|--verbose) beverbose="yes";;
-c|--conf) conffile="$2"; shift;;
-l|--local) allowlocal="yes" ;;
-h|--hostonly) hostonly="-h" ;;
cp -a -t "$initdir$include_target" "$include_src"/*
}
+[[ "$beverbose" = "yes" ]] && (du -c "$initdir" | sort -n)
+
( cd "$initdir"; find . |cpio -H newc -o |gzip -9 > "$outfile"; )
+
+[[ "$beverbose" = "yes" ]] && ls -lh "$outfile"
+
+: