Scientific Linux 5.8 CD/PXE kickstart installation

# create directory
mkdir -p /var/lib/tftpboot/scientificlinux/58
 
# get boot iso (workarroud for broken initrc)
wget ftp://ftp.halifax.rwth-aachen.de/scientificlinux/58/x86_64/images/boot.iso -O /var/lib/tftpboot/scientificlinux/58/boot.iso
 
 
# replace isolinux.cfg in boot.iso
default linux
prompt 0
timeout 1
label linux
kernel vmlinuz
append initrd=initrd.img text ksdevice=link ks=http://www.panticz.de/pxe/kickstart/sl58-ks.cfg
 
 
# kickstart file: https://raw.githubusercontent.com/panticz/preseed/master/kickstart/scientificlinux58-minimal.cfg
install
url --url ftp://ftp.halifax.rwth-aachen.de/scientificlinux/58/x86_64
lang en_US.UTF-8
keyboard us
network --device eth0 --bootproto dhcp
rootpw toor
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone --utc Europe/Berlin
bootloader --location=mbr --driveorder=sda
reboot
%packages
@core
 
 
# /var/lib/tftpboot/pxelinux.cfg/scientificlinux-5.8.conf 
LABEL linux 
MENU LABEL Scientific Linux 5.8 PXE Install
LINUX memdisk
INITRD scientificlinux/58/boot.iso 
APPEND iso
 
 
# add conf file to default PXE configuration
echo "MENU INCLUDE pxelinux.cfg/scientificlinux-5.8.conf" >> /var/lib/tftpboot/pxelinux.cfg/default
 
 
# LINKS
http://www.gtkdb.de/index_7_1659.html
http://wiki.centos.org/TipsAndTricks/KickStart/
http://www.syslinux.org/wiki/index.php/MEMDISK#ISO_images
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/s1-kickstart2-options.html