Home»Howto»Shell»Mount initrd
Mount initrd
Perform commands starting in directory containing initrd.gz
extract
# mkdir initdir
# cd initdir
# zcat ../initrd.gz | cpio -i -d
compress
# cd initdir
# find . | cpio -o -H newc | gzip -9 > ../initrd.gz