This is how I make a bootable Red Hat Enterprise Linux installation DVD, that includes a customized kickstart file. Installation is automatic and no questions are asked.
Make a directory called ./dvd/
Loop mount the ISO image of the DVD and copy all of its contents (intact) to ./dvd/
Unmount the ISO image.
The kickstart file is named ks.cfg and is placed in the root directory of the DVD.
In the ks.cfg file:
install
cdrom
poweroff
This specifies cdrom as the installation source and causes the machine to power off when done installing, so we can remove the DVD from the drive.
In the isolinux/isolinux.cfg file:
default linux
prompt 1
timeout 6
display boot.msg
prompt 1
timeout 6
display boot.msg
label linux
kernel vmlinuz
append initrd=initrd.img method=cdrom ks=cdrom:/ks.cfg
kernel vmlinuz
append initrd=initrd.img method=cdrom ks=cdrom:/ks.cfg
Change the timeout to something quicker. The default statement specifies which menu option is selected automatically. In the menu option, we specify cdrom as the installation method, and the location and name of the kickstart file (which has to be named ks.cfg).
Create the new ISO file from the contents of the ./dvd/ directory:
/usr/bin/mkisofs -o dvd.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T ./dvd/
The -o option lets you name the ISO image file anything you want.
Copy the resulting dvd.iso file to your PC and burn it to a DVD.