How to extract the cpio archive in the kernel image?

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

 



Hello,

Does anyone know a simple, command line way to extract the cpio archive embedded in a (compressed) kernel image?

That would be useful to modify the initramfs included in the kernel image even if one only has the kernel binary and sources, but not the initramfs sources.

Of course, it is always possible to get the initramfs contents from the running kernel and dump them somewhere, or to write a custom program for this purpose (accessing and uncompressing the embedded cpio archive as the kernel does), but it would be nice it there was a simpler way with regular Unix commands (I guess involving gunzip and cpio).

In a nutshell, how to open the penguin and still get the golden egg? ;-)

   Cheers,

Michael.
--
Michael Opdenacker, Free Electrons
Free Embedded Linux Training Materials
on http://free-electrons.com/training
(More than 1000 pages!)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux