# open directory tree
zcat /tmp/initrd.img | cpio -i --no-absolute-filenames
# compress initrd
find . | cpio -o -c | gzip -9 > /boot/initrd-kernel_version.img
zcat /tmp/initrd.img | cpio -i --no-absolute-filenames
# compress initrd
find . | cpio -o -c | gzip -9 > /boot/initrd-kernel_version.img