It is useful to display the size of initrd in human-friendly form.

Signed-off-by: Amerigo Wang <[email protected]>

---
diff --git a/lsinitrd b/lsinitrd
index 3b9cc85..7da9f61 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 "========================================================================"
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to