public inbox for initramfs@vger.kernel.org
 help / color / mirror / Atom feed
* Minimal initramfs Modification
@ 2015-07-23 19:08 Rick Tillery
       [not found] ` <CAAZEOjsyDkv0ai9a96Jg0M7tX5hAKUXMgHW7NiAugf7Sf_xnEw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 5+ messages in thread
From: Rick Tillery @ 2015-07-23 19:08 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

I need to make a small modification to an existing initramfs image
file (to add driver and executable that need to run before main system
drives are mounted), but I want to do so with minimal changes to the
existing image, in order to avoid incompatibilities with any other
customization that may have been added to the initramfs before.

dracut seems to create initramfs from scratch, using the currently
running environment.  But I would prefer to unarchive the image, make
my small modification, re-archive the tree, and then replace the
existing initramfs file (backing up the old one) to be used on the
next reboot.  The goal is as small a change as possible from what was
there originally.

I tried using cpio, but it doesn't handle the device directories when
unarchiving without generating errors.  And I'm not sure how to use
this to reconstruct the archive, especially with the compression and
early CPIO portions restored correctly.

Is it possible to use dracut or another tool (or tools) to make
minimally invasive changes to the initramfs?

Thanks!
Rick

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

end of thread, other threads:[~2015-10-01 10:56 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-07-23 19:08 Minimal initramfs Modification Rick Tillery
     [not found] ` <CAAZEOjsyDkv0ai9a96Jg0M7tX5hAKUXMgHW7NiAugf7Sf_xnEw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-23 20:42   ` Andrew Udvare
     [not found]     ` <55B151B0.5020100-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2015-07-24 15:26       ` Rick Tillery
     [not found]         ` <CAAZEOjsavzT1GsBMENe9AbHYDUhrhbS5OWaZ4tpuqe7383GO3A-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-07-27  4:10           ` Andrei Borzenkov
2015-10-01 10:56         ` Akos Ovari

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