The initrd.img? I love Linux for these sorts of cool filesystem tricks, along with mounting ISO files directly without having to burn them. I don't know if you've played with mounting images on loop devices but it's extremely cool. I have several ISO images of CDs on my server and I mount them on a loop device and then Samba share them. It's like having 30 CD-ROM drives on my machine.
# mount /iso/win2000.iso /loop/win2000 -o loop
or the entry in /etc/fstab would be something like:
/iso/win2000.iso /loop/win2000 iso9660 user,exec,ro,loop 0 0
And of course you can copy or change anything in that mounted filesystem before writing it to CD. Whenever someone wants a CD I just cdrecord one of the images to a blank disk and hand it over.
And I like manipulating the initrd.img in a similar matter but like you say that file *is* compressed so:
# zcat /boot/initrd.img > /images/initrd.dat
# mount /images/initrd.dat /mnt/initrd -o loop
add kernel modules etc under /mnt/initrd and/or change the boot scripts then:
# umount /mnt/initrd
# gzip -cd < /images/initrd.dat > /boot/initrd.img
Fun stuff...
[ March 01, 2002: Message edited by: VoidMain ]