reading/writing initrd – the initial ram disk of a desktop Linux system:
mkdir tmp
cd tmp
gzip -dc /somepath/initrd.gz | cpio -id
# do the edits on the files
find . | cpio –quiet –dereference -o -H newc | gzip -9 > /somepath/new-initrd.gz
reading/writing initrd – the initial ram disk of a desktop Linux system:
mkdir tmp
cd tmp
gzip -dc /somepath/initrd.gz | cpio -id
# do the edits on the files
find . | cpio –quiet –dereference -o -H newc | gzip -9 > /somepath/new-initrd.gz