Re: [PATCH] Dracut: Add a new argument "--rebuild"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxx>
> Signed-off-by: Hari Bathini <hbathini@xxxxxxxxxxxxxxxxxx>
> ---
>  dracut.sh |  386 +++++++++++++++++++++++++++++++++++++++++--------------------
>  1 file changed, 260 insertions(+), 126 deletions(-)

Thanks! Pushed.

Modified slightly. Also added support to lsinitrd to display the arguments.
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux