# Use network installation url --url=http://192.168.0.160/centos5.4/i386/
# Network information #network --bootproto=static --device=eth0 --gateway=192.168.0.254 --ip=192.168.0.237 --nameserver=202.96.134.133 --netmask=255.255.255.0 --onboot=on --hostname=centos network --bootproto=dhcp --device=eth0 --onboot=on # Disk partitioning information part /boot --asprimary --bytes-per-inode=4096 --fstype=ext3 --size=256 part pv.4 --size=1 --grow volgroup VolGroup00 --pesize=32768 pv.4 logvol swap --fstype swap --name=swap --vgname=VolGroup00 --size=2048 logvol / --fstype ext3 --name=root --vgname=VolGroup00 --size=2048 logvol /home --fstype ext3 --name=home --vgname=VolGroup00 --size=512 logvol /var --fstype ext3 --name=var --vgname=VolGroup00 --size=512 #============================================================================ #platform=x86, AMD64, or Intel EM64T # System authorization information auth --useshadow --enablemd5 # System bootloader configuration bootloader --location=mbr # Clear the Master Boot Record zerombr # Partition clearing information clearpart --all --initlabel # Use text mode install text # Firewall configuration firewall --enabled --ssh # Run the Setup Agent on first boot firstboot --disable # System keyboard keyboard us # System language lang en_US # Installation logging level logging --level=info #Root password: 123456 rootpw --iscrypted $1$61GVGPXG$1ulqMq3.NqBiod6EqcLut0 # SELinux configuration selinux --enforcing # Do not configure the X Window System skipx # System timezone timezone Asia/Chongqing # Install OS instead of upgrade install %packages @core @base net-snmp