#Insert the Red Hat CD-Rom disk 1. mount /mnt/cdrom mkdir /tmp/bootnet cd /tmp/bootnet cp /mnt/cdrom/images/bootnet.img . mkdir bootnet.img.dir mount bootnet.img bootnet.img.dir -o loop cp bootnet.img.dir/initrd.img . mv initrd.img initrd.gz gunzip initrd.gz mkdir initrd.img.dir mount initrd initrd.img.dir -o loop cp initrd.img.dir/modules/modules.cgz . mv modules.cgz modules.cpio.gz gunzip modules.cpio.gz cat modules.cpio | cpio -idv |
find 2.4.7-2BOOT/ | grep -v "BOOT/$" | cpio -o -H crc >modules.cpio gzip -9 -n modules.cpio mv modules.cpio.gz modules.cgz mv modules.cgz initrd.img.dir/modules/modules.cgz umount initrd.img.dir gzip -9 -n initrd mv initrd.gz initrd.img mv initrd.img bootnet.img.dir/initrd.img umount bootnet.img.dir #You are now ready to use your modified bootnet.img floppy image. |