How to unpack and pack an initrd

From openQRM
Revision as of 09:31, 28 November 2023 by Stvsyf (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


Brief instructions to unpack and repack an image as an initrd;


Unpack an initrd

unmkinitramfs initrd .


Pack an initrd

cd initrd

find . | cpio -o -H newc | gzip -9 > ../KERNEL_NAME.img