Re: add new module in initrd

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



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


_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux