install #url --url http://mirror.1and1faq.fr/centos/5.2/os/x86_64/ #url --url http://www4.atomicorp.com/centos/5.3/os/x86_64/ url --url http://ftp.tu-chemnitz.de/pub/linux/centos/5.6/os/x86_64/ lang en_US.UTF-8 keyboard us skipx rootpw --iscrypted $1$2hHM9lfc$8FzdfhTd8x2adepjswBMN1 firewall --enabled --port=22:tcp --port=22:tcp authconfig --enableshadow --enablemd5 selinux --disabled timezone America/New_York bootloader --location=mbr #network --device eth0 --bootproto dhcp zerombr text clearpart --all %include /tmp/partinfo #part /boot --fstype ext3 --size=128 #part swap --size=2048 #part / --fstype ext3 --size=1 --grow reboot %packages # Still working on this %pre # Determine how many number/type/size of drives we have set $(list-harddrives) let numd=$#/2 # This will provide the total # of drives d1=$1 # This is the device of disk 1 d2=$3 # This is the device of disk 2, etc. S1=$2 # This is the size of disk 1 S2=$4 # This is the size of disk 2, etc. # This would be a partition scheme for two or more drives if [ $numd -ge 2 ] ; then cat << EOF >> /tmp/partinfo part raid.17 --size=256 --ondisk=$d1 --asprimary part swap --size=2048 --ondisk=$d1 part raid.18 --size=256 --ondisk=$d2 --asprimary part swap --size=2048 --ondisk=$d2 part raid.20 --size=1 --grow --ondisk=$d1 part raid.19 --size=1 --grow --ondisk=$d2 raid /boot --device=md1 --fstype ext3 --level=RAID1 raid.17 raid.18 raid / --device=md0 --fstype ext3 --level=RAID1 raid.19 raid.20 EOF else cat << EOF >> /tmp/partinfo part /boot --fstype ext3 --size=128 part swap --size=2048 part / --fstype ext3 --size=1 --grow EOF fi