From: Harald Hoyer <harald-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
To: Hari Bathini
<hbathini-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>,
initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Cc: Mahesh J Salgaonkar
<mahesh-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>,
Manik Bajpai
<manibajp-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
Subject: Re: [PATCH] Dracut: Add a new argument "--rebuild"
Date: Tue, 28 Jan 2014 15:40:42 +0100 [thread overview]
Message-ID: <52E7C16A.2000306@redhat.com> (raw)
In-Reply-To: <20140116064127.13510.80220.stgit-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
On 01/16/2014 07:41 AM, Hari Bathini wrote:
> Add "rebuild" option to dracut to append the current arguments
> to those with which the input initramfs image was built. This
> option helps in incrementally building initramfs for testing.
>
> Usage: dracut [output_file] --rebuild input_file
>
> If optional output file is not provided, input file provided to
> rebuild will be used as output file.
>
> This patch alters the creation of the initramfs image by adding
> the file "/tmp/params.txt" to the image. Command line parameters
> excluding "--rebuild", input & output image names and "kernel
> version" are stored in this file. In case "--rebuild" parameter
> is specified, "/tmp/params.txt" file, if present in input image,
> is read and its contents "prepend"ed to the current command line
> parameters, that is if such a file is already present. Also, it
> stores the cumulative parameters to the file "/tmp/params.txt",
> in the new image. This patch has been tested successfully on a
> PowerBox with f19. It does not alter the behaviour of any of the
> existing options.
>
> Signed-off-by: Manik Bajpai <manibajp-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
> Signed-off-by: Hari Bathini <hbathini-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org>
> ---
> dracut.sh | 386 +++++++++++++++++++++++++++++++++++++++++--------------------
> 1 file changed, 260 insertions(+), 126 deletions(-)
Thanks! Pushed.
Modified slightly. Also added support to lsinitrd to display the arguments.
prev parent reply other threads:[~2014-01-28 14:40 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-01-16 6:41 [PATCH] Dracut: Add a new argument "--rebuild" Hari Bathini
[not found] ` <20140116064127.13510.80220.stgit-bi+AKbBUZKY6gyzm1THtWbp2dZbC/Bob@public.gmane.org>
2014-01-28 14:40 ` Harald Hoyer [this message]
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=52E7C16A.2000306@redhat.com \
--to=harald-h+wxahxf7alqt0dzr+alfa@public.gmane.org \
--cc=hbathini-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org \
--cc=initramfs-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=mahesh-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@public.gmane.org \
--cc=manibajp-23VcF4HTsmIX0ybBhKVfKdBPR1lH4CV8@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox