From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: "initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: [PATCH 05/11] add debug and changed verbose parameter
Date: Fri, 15 May 2009 14:39:31 +0200 [thread overview]
Message-ID: <4A0D6283.6090805@redhat.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 211 bytes --]
previous -verbose is now -debug (set -x)
-verbose adds some information about the resulting initrd size
---
Makefile | 2 +-
dracut | 9 ++++++++-
2 files changed, 9 insertions(+), 2 deletions(-)
[-- Attachment #2: c4ad7ffff4e9fc38ae68f1e7a6bf16f4bc879b7d.diff --]
[-- Type: text/x-patch, Size: 1065 bytes --]
diff --git a/Makefile b/Makefile
index ef264eb..7053cd9 100644
--- a/Makefile
+++ b/Makefile
@@ -44,5 +44,5 @@ check:
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
diff --git a/dracut b/dracut
index 7a14765..4d42e82 100755
--- a/dracut
+++ b/dracut
@@ -15,7 +15,8 @@ while (($# > 0)); do
-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" ;;
@@ -108,4 +109,10 @@ ldconfig -n -r "$initdir" /lib* /usr/lib*
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"
+
+:
reply other threads:[~2009-05-15 12:39 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A0D6283.6090805@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.