Skip to contentSkip to conversation

lsinitrd: display the size of initrd

PATCH In review Amerigo Wang 2 participants 2 messages Aug 1, 2011 – Aug 12, 2011 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lsinitrd: display the size of initrd

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

---

lsinitrd +1 -1
index 3b9cc85..7da9f61 100755
@@ -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 "========================================================================"
#2 lore raw
In reply to a message not in the archive
Quoted 19 lines · Amerigo Wang

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

---

lsinitrd +1 -2
index 3b9cc85..7da9f61 100755
@@ -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 "========================================================================"
--
Quoted 3 lines

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

pushed