Comment 4 for bug 2059976

Revision history for this message
Adam Vodopjan (grozzly) wrote :

> I have implemented the listing of uncompressed cpio archives (roughly 120 lines of code). Now I have to add the decompression support

Finding offsets of the embedded archives is the only time consuming part of the whole script. Mby it is better to create a separate tool, say "scaninitramfs", to only list offsets and size of embedded archives, just like my tools' "-s" option does, and use it in the original script?

Scan output can be of interest beyond unmkinitramfs. For example, if you need to know the compression used in some initrd. With a scan tool you can quickly get the offset of the compressed cpio and "dd .. | file .."