Difference between revisions of "How to unpack and pack an initrd"
From openQRM
Line 1: | Line 1: | ||
[[Category:tutorial]] | [[Category:tutorial]] | ||
− | + | Brief instructions to unpack and repack an image as an initrd; | |
Line 11: | Line 11: | ||
'''Pack an initrd''' | '''Pack an initrd''' | ||
− | cd initrd | + | <code>cd initrd |
find . | cpio -o -H newc | gzip -9 > ../KERNEL_NAME.img | find . | cpio -o -H newc | gzip -9 > ../KERNEL_NAME.img | ||
+ | <code> |
Latest revision as of 09:31, 28 November 2023
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