On Wednesday 11 July 2007 19:52, James Tremblay wrote:
> Hey everyone,
> I need to extract an initrd, some secret CPIO command, and modify the
> scripts it runs. The initrd I want is the one used in the "mini" bootcd
> for 10.2 , can anyone help?

Hi James,

initrd is gzip archive that has one file that is cpio archive. 

You need empty directory as in initrd is compressed few directories. 
mkdir test
cd test
cp /boot/initrd-* ./initrd.cpio.gz
gunzip initrd.cpio.gz
cpio -iI initrd.cpio
rm initrd.cpio

which will extract file with all subdirectories and remove initrd.cpio leaving 
you with content of initrd in current directory. 

Manual for cpio is best readable in Konqueror. 
Type in Location: "info:cpio" and you can read it. 
You will need it to package initrd after editing. 

-- 
Regards,
Rajko.
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to