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
unfortunately that won't help with a PXEboot initrd.img, which is very different under the hood. this may help: http://www.redhat.com/archives/kickstart-list/2007-May/msg00081.html it covers modifying an existing driver. adding a new driver won't be much different, except you'll also need proper information for the module-info and pcitable files for your new driver. it looks like you already found this link from your message: https://listman.redhat.com/archives/kickstart-list/2003-March/msg00183.html which should help with modifying the pcitable.
But once you've unzipped it, type "file init" to see what it is
nicholas is right, you should see if the initrd.img file you are starting with is a compressed filesystem image. if it's a cpio archive, you can start by unarchiving it to a directory and hacking away. if it's cramfs, you'll need to mount it, copy the contents to a writable directory (cramfs is read-only), modify, and use mkcramfs against the writable directory to create a new image. something like: mkdir /tmp/mnt mount -o loop cramfs.img /mnt rsync -avW /mnt/ /tmp/mnt <changes to /tmp/mnt data here> mkcramfs /tmp/mnt /tmp/cramfs-new.img hope this helps, chris