Tuesday, February 2, 2010
4:39 PM

Modifying Bootup Scripts in initrd

Unpack it
--------
gunzip -c /minirt | cpio -idm

OR
>>mv minirt minirt.gz
>>gzip -d minirt.gz
>>cpio -i < .minirt

modify initrc or init

Pack it back
------------
find | cpio -H newc -o > ../new_initrd_file
gzip -9 new_initrd_file

0 comments:

Post a Comment