I worked my way through this. I must say pipes and redirectionmavrothal wrote:Scooby, nooby, et all,
But you have to learn. Right? so here we go.Make sure you know what to do and how to boot your system if you get a "kernel panic", "can not find files", etc...Code: Select all
mkdir initramfs cd initramfs gunzip -c /path/to/initrd.gz | cpio -i # apply patches/modify initramfs mv /path/to/initrd.gz /path/to/initrd.gz.orig find . -print | cpio -H newc -o | gzip -9 > /path/to/initrd.gz
twists my brain a little bit.
In the last command do you write the initrd.gz straight into ISO?
Or do you have another script that creates ISO?
I get "bash: /mnt/testdisk/initrd.gz: cannot overwrite existing file"
Maybe cause ISO is mounted read-only?
thanks for the lesson, I never used cpio before and was unfamiliar with newc format.
Does newc ad any compression?