Modifying initrd image

Extracting initrd image

mkdir initrd && cd initrd
gzip -dc initrd.cpio.gz | cpio -id

Creating initrd image

find . | cpio -H newc -o | gzip > ../initrd2.cpio.gz

Over!

Leave a Reply

Your email address will not be published. Required fields are marked *