how to create initrd for pxe kickstart boot

Farkas Levente lfarkas at bppiac.hu
Thu Jun 21 20:47:06 UTC 2007


Nicholas Byrne wrote:
> what distribution are you using? It might be a cpio archive or in cramfs
> filesystem - start here http://wiki.openvz.org/Modifying_initrd_image
> But once you've unzipped it, type "file init" to see what it is

centos 5.0

> Farkas Levente wrote:
>> hi,
>> i need to create a new inird which include r1000 ethernet driver for oxe
>> boot. i read everywhere that i've to:
>> ---------------------
>> mv initrd.imginitrd.img.gz
>> gunzip initrd.img.gz
>> mkdir init
>> mount -o loop initrd.img init
>> ----------------------
>> but these last step always gives me:
>> mount: you must specify the filesystem type
>> and i can't find any kind of fs type which would be good.
>> although with
>> gunzip initrd.img | cpio -i --make-directories
>> seems to working, but even if i don't modify it and
>> find . -print | cpio -o -c |gzip -9 >initrd.img.new
>> the result is different form the original one.
>> so what is the proper procedure to recreate the initrd file?
>> thank you for your help in advance.


-- 
  Levente                               "Si vis pacem para bellum!"




More information about the Kickstart-list mailing list