#Activo Log
logging --level=debug
#Language modules to install
lang en_US.UTF-8
langsupport --default=en_US.UTF-8 en_US.UTF-8
timezone --utc Asia/Shanghai
#interactive
#System mouse
mouse none
keyboard us
#Reboot after installation
reboot --eject
#Use text mode install
text
#Install Red Hat Linux instead of upgrade
install
#Use CDROM installation media
cdrom
#System bootloader configuration
#bootloader --location=mbr --md5pass=$1$Ojt/RZI5$O7Bm59nH9wImap8ug.z6P/
bootloader --location=mbr
#Clear the Master Boot Record
zerombr yes
#Partition clearing information
clearpart --all --initlabel
part /boot --fstype ext3 --size=100
part / --fstype ext3 --size=1024 --grow
part swap --size=256 --grow --maxsize=768
#System authorization infomation
auth --useshadow --enablemd5
#Network information
#network --device eth0 --onboot yes --bootproto static --ip=192.168.10.80 --netmask=255.255.255.0 --gateway=192.168.10.1 --nameserver=192.168.10.99
network --bootproto=dhcp --device=eth0
#Root password
#rootpw --iscrypted $1$gT4P/nE1$KXe4Fuqh6foN8TE9VS7iA.
rootpw jordan
#Firewall configuration
firewall --disabled
selinux --disabled
#Do not configure XWindows
skipx
#Package install information
%packages
@core
@base
device-mapper-multipath
kernel-devel
mysql-server
mysql-devel
php
php-mysql
perl-libwww-perl
libdbi-dbd-mysql
lrzsz
vim-common
vim-enhanced
vim-minimal
# ------------------------------------------
# Post install
# ------------------------------------------
%post --nochroot
echo "NETWORKING=yes" > /etc/sysconfig/network
echo "HOSTNAME=jordan-test" >> /etc/sysconfig/network
echo "jordan test 5.5" > /etc/redhat-release
/sbin/chkconfig --level 234 httpd on
/sbin/chkconfig --level 234 mysqld on
/sbin/chkconfig smartd off
#done