From: Amerigo Wang Date: Mon, 1 Aug 2011 06:55:15 +0000 (+0800) Subject: lsinitrd: display the size of initrd X-Git-Tag: 012~14 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0c7112fcff1de5a0c66b5eb53dc69c11f3853aea;p=thirdparty%2Fdracut.git lsinitrd: display the size of initrd It is useful to display the size of initrd in human-friendly form. Signed-off-by: Amerigo Wang --- diff --git a/lsinitrd b/lsinitrd index 3b9cc852d..7da9f6120 100755 --- a/lsinitrd +++ b/lsinitrd @@ -41,7 +41,7 @@ if [[ $# -eq 2 ]]; then exit $? fi -echo "$image:" +echo "$image: $(du -h $image | awk '{print $1}')" echo "========================================================================" $CAT "$image" | cpio --extract --verbose --quiet --to-stdout 'lib/dracut/dracut-*' 2>/dev/null echo "========================================================================"