Modifying an initrd Posted on June 24, 2014. Extract Shell mkdir /tmp/initrd cd /tmp/initrd gunzip -c /boot/initrd.gz | cpio -id 123 mkdir /tmp/initrdcd /tmp/initrdgunzip -c /boot/initrd.gz | cpio -id Recreate Shell cd /tmp/initrd find . | cpio --create --format='newc' | gzip > /boot/initrd_new.gz 12 cd /tmp/initrdfind . | cpio --create --format='newc' | gzip > /boot/initrd_new.gz Leave a Comment