Donnerstag, 2. Dezember 2010

edit initrd

If you ever need to edit the initrd file of /boot/ then issue the following commands:

mkdir ~/initrd
zcat boot/initrd-2.6.22.12-0.1-default >~/initrd-2.6.22.12-0.1-default.cpio
cd ~/initrd
cpio -idv <../initrd-2.6.22.12-0.1-default.cpio

The reverse process is doing by this commands:

find . | cpio --quiet -c -o | gzip -9 -n > /boot/imagefile.img