Procedure for custom install DVD:
- Create a custom kickstart file. (You can install the OS on a system interactively, once, then harvest the anaconda-ks.cfg file from /root to get started. You can modify that file to suit your needs.
- Copy the RHEL/CentOS install DVD to a working folder (we will call it
/tmp/dvdroot), and don't forget the hidden .treeinfo and .diskinfo files.
- Copy your customized kickstart file (we will assume it's called ks.cfg) to
/tmp/dvdroot.
- Edit
/tmp/dvdroot/isolinux/isolinux.cfg. There are several blocks of label/kernel/append. Duplicate one, and edit one to resemble this:
label special
kernel vmlinuz
append ks=cdrom:/ks.cfg initrd=initrd.img
Run the following commands
cd /tmp/dvdroot
mkisofs -quiet -r -T -J -V "Special Install Disk" -b isolinux/isolinux.bin \
-c isolinux/boot.cat -no-emul-boot -boot-load-size 4 \
-boot-info-table -o ../special-dvd.iso .
Do not forget that last dot on the previous command.
Now burn /tmp/special-dvd.iso to blank DVD media:
cdrecord -dao /tmp/special-dvd.iso
When you use the DVD to install a system and you get to the install prompt, enter special.