[CentOS] Re: add new module in initrd

Mon Aug 13 09:39:23 UTC 2007
beast <beast at ldap.or.id>

On 13/08/07 11:20 +0700, beast wrote:
>>The initrd file is just a gzipped ext2 filesystem image, so you need to
>>uncompress it into a temporary file and then mount that file using 
>>loopback:
>>
>>zcat /boot/initrd-`uname -r`.img >/tmp/fs
>>mkdir /mnt/initrd
>>mount -r -t ext2 -o loop /tmp/fs /mnt/initrd
>>
>>Then you can look under /mnt/initrd to see the contents of the initial 
>>ramdisk.
>
>Its not an image anymore :
>fs: ASCII cpio archive (SVR4 with no CRC)
>
>However it can be extarct using cpio:
>gunzip < /boot/initrd-version.img |cpio -i --make-directories 

Aparently its not as simply copy .ko file into modules.cgz. I have copied the
ethernet driver, however it did not get loaded when loadning from pxeboot.
Any other steps required?


--beast