You are here

rebuilding initrd

#to unpack into a new folder
initfile=/mnt/initrd-2.6.18-194.11.1.el5.img
mkdir new; cd new
gunzip

#make changes and rebuild with:
find ./ | cpio -H newc -o > ../initrd.cpio
cd ..
gzip initrd.cpio
mv $initfile ${initfile}.old
mv initrd.cpio.gz $initfile

Topic: