install url --url http://www4.atomicorp.com/centos/5.3/os/i386/ 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 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 pv.01 --size=1 --grow --fstype=ext3 --ondisk=$d1 volgroup volgrp01 pv.01 part pv.02 --size=1 --grow --fstype=ext3 --ondisk=$d2 volgroup volgrp02 pv.02 #HOWEVER_YOU_WANT_TO_PARTITION EOF else cat << EOF >> /tmp/partinfo part pv.01 --size=1 --grow --fstype=ext3 --ondisk=$d1 volgroup volgrp01 pv.01 #HOWEVER_YOU_WANT_TO_PARTITION EOF fi