How to extract and repack initram To unpack initram you could use the following command gunzip < initramfs.img|cpio -i after make the change you can repack with the following command find | cpio -H newc -o|gzip > ../initramfs.img