mkinitrd unification across distributions
 help / color / mirror / Atom feed
* [Patch] lsinitrd: display the size of initrd
@ 2011-08-01  6:55 Amerigo Wang
       [not found] ` <1312181715-27796-1-git-send-email-amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Amerigo Wang @ 2011-08-01  6:55 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA
  Cc: harald-H+wXaHxf7aLQT0dZR+AlfA, Amerigo Wang

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

Signed-off-by: Amerigo Wang <amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>

---
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 "========================================================================"

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Patch] lsinitrd: display the size of initrd
       [not found] ` <1312181715-27796-1-git-send-email-amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
@ 2011-08-12  6:06   ` Harald Hoyer
  0 siblings, 0 replies; 2+ messages in thread
From: Harald Hoyer @ 2011-08-12  6:06 UTC (permalink / raw)
  To: Amerigo Wang; +Cc: initramfs-u79uwXL29TY76Z2rM5mHXA

On 01.08.2011 08:55, Amerigo Wang wrote:
> It is useful to display the size of initrd in human-friendly form.
> 
> Signed-off-by: Amerigo Wang <amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
> 
> ---
> 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 majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

pushed

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-12  6:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-01  6:55 [Patch] lsinitrd: display the size of initrd Amerigo Wang
     [not found] ` <1312181715-27796-1-git-send-email-amwang-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-08-12  6:06   ` Harald Hoyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox