[CentOS] How to Automate Centos 5.7 CD bare bones build

Thu May 16 09:29:09 UTC 2013
John Doe <jdmls at yahoo.com>

From: J.W. slone <jslonejr at yahoo.com>

>Does anyone know how to automate a CD Centos 5.7 build.?
>1) new bare bones workstation ( PXE enabled)
>2) Boot from CD to the boot prompt
>3) At the boot: linux ks=http://x.x.x.x/ks/cfg/org/1/label/Centos5.7
>
>The workstation is able to connect to the server and the kick-start works great.!
>Question: how can I automate  linux ks=http://x.x.x.x/ks/cfg/org/1/label/Centos5.7 on the CD?
>Unattended installation after installing the cd into the workstation 

Something like that (untested)?

mkdir /tmp/cdrom
mount CentOS-5.7-x86_64-bin-DVD.iso /mnt/cdrom -t iso9660 -o loop
cp -a /mnt/cdrom /tmp/cdrom
umount /mnt/cdrom
cd /tmp/cdrom

vim isolinux/isolinux.cfg
  default linux ks=http://x.x.x.x/ks/cfg/org/1/label/Centos5.7
  timeout 3
chmod u+w isolinux/*

mini iso (without packages):
  cd /tmp/cdrom
  mkisofs -o ../mini.iso -b isolinux.bin -c boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T isolinux/

full iso (with packages):
  cd /tmp
  mkisofs -o full.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table -R -J -v -T cdrom


JD