Unpack the initrd.gz file
1. Make a tempinit directory and place the initrd.gz file that you want to edit in this new directory.
2. Using a console execute this:
Code: Select all
cd to directory containing initrd.gz
mkdir initrd-tree
cd initrd-tree/
zcat ../initrd.gz | cpio -i -d
3. Using a text editor open the /initrd-tree/init file and make your changes.
4. Pack the new file using a console and this:
Code: Select all
cd again to initrd-tree
rm ../initrd.gz
find . | cpio -o -H newc | gzip -9 > ../initrd.gz
Note: See Iguleder's suggestions in next post.