Extract image to local filesystem:
mkdir tmp cd tmp wget some-initrd.img zcat some-initrd.img | cpio -idmv ls
After doing some changes, build a new image:
find . | cpio -o -c | gzip -1 > ../new.img
Recommended Posts