install
nfs --server=192.168.3.1 --dir=/tftpboot/iso/centos5.4_32
#cdrom
lang en_US.UTF-8
keyboard us
xconfig --startxonboot
network --device eth0 --bootproto static --ip 192.168.3.21 --netmask 255.255.255.0 --gateway 192.168.3.1
rootpw --iscrypted $1$5EemI9ES$txW4ZHxUPIzTh4ZCYS09J1
firewall --enabled --port=22:tcp
authconfig --enableshadow --enablemd5
selinux --enforcing
timezone --utc Asia/Shanghai
bootloader --location=mbr --driveorder=sda --append="rhgb quiet"
# The following is the partition information you requested
# Note that any partitions you deleted are not expressed
# here so unless you clear all partitions first, this is
# not guaranteed to work
#clearpart --linux
# 删除所有分区。
clearpart --all --initlabel
# as Kb
part / --fstype ext3 --size=20000
part swap --size=2000
#part /app --fstype ext3 --size=100 --grow