# Kickstart file automatically generated by anaconda.
install cdrom lang en_US.UTF-8 keyboard us network --device eth0 --bootproto dhcp rootpw --iscrypted $1$fupKhGiH$sx2TexUjriSyu..IZUwT9. firewall --disabled --port=22:tcp authconfig --enableshadow --enablemd5 selinux --disabled timezone --utc Asia/Shanghai bootloader --location=mbr --driveorder=sda # 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 part /boot --fstype ext3 --size=100 part swap --size=512 part / --fstype ext3 --size=100 --grow
%post # Disable unused service chkconfig NetworkManager off chkconfig acpid off chkconfig anacron off chkconfig atd off chkconfig auditd off chkconfig autofs off chkconfig avahi-daemon off chkconfig avahi-dnsconfd off chkconfig bluetooth off chkconfig capi off chkconfig conman off chkconfig cpuspeed off chkconfig dnsmasq off chkconfig dund off chkconfig edac off chkconfig fcoe off chkconfig firstboot off chkconfig gpm off chkconfig haldaemon off chkconfig hidd off chkconfig ip6tables off chkconfig ipsec off chkconfig iptables off chkconfig irda off chkconfig iscsi off chkconfig iscsid off chkconfig isdn off chkconfig kdump off chkconfig kudzu off chkconfig mcstrans off chkconfig mdmonitor off chkconfig mdmpd off chkconfig messagebus off chkconfig multipathd off chkconfig netconsole off chkconfig netfs off chkconfig netplugd off chkconfig nfs off chkconfig nfslock off chkconfig nscd off chkconfig oddjobd off chkconfig pand off chkconfig pcscd off chkconfig portmap off chkconfig psacct off chkconfig rawdevices off chkconfig rdisc off chkconfig readahead_early off chkconfig readahead_later off chkconfig restorecond off chkconfig rpcgssd off chkconfig rpcidmapd off chkconfig rpcsvcgssd off chkconfig saslauthd off chkconfig sendmail off chkconfig smartd off chkconfig sssd off chkconfig svnserve off chkconfig tcsd off chkconfig wpa_supplicant off chkconfig xfs off chkconfig xinetd off chkconfig ypbind off chkconfig yum-updatesd off
6、让ISO按照anaconda-ks.cfg文件来执行安装
vi /root/iso/isolinux/isolinux.cfg
Default linux 修改成default linux ks=cdrom:/anaconda-ks.cfg