####################我的ks.cfg文件###########################
[root@localhost tftpboot]# cat ks.cfg
#platform=x86, AMD64, 或 Intel EM64T
# System authorization information
auth
# 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 --disabled
# Run the Setup Agent on first boot
firstboot --disable
# System keyboard
keyboard us
# System language
lang zh_CN
# Installation logging level
logging --level=info
# Use network installation
#url --url=nfs:192.168.2.203:/tftpboot/ks.cfg #http方式
# Network information
#network --bootproto=static --device=eth0 --gateway=192.168.2.1 --ip=192.168.2.203 --nameserver=192.168.2.1 --netmask=255.255.255.0 --onboot=on
network --bootproto=dhcp --device=eth0 --onboot=on
# Reboot after installation
reboot
#Root password
#rootpw
rootpw --iscrypted $1$h8PndJA7$f9cxY4cHR0lSnwaq.5Y0o.
# SELinux configuration
selinux --disabled
# System timezone
timezone --isUtc Asia/Shanghai
# Install OS instead of upgrade
install
# X Window System configuration information
#skipx 表示不安装X Window
xconfig
# Disk partitioning information
#part /boot --bytes-per-inode=4096 --fstype="ext3" --size=100
#part / --bytes-per-inode=4096 --fstype="ext3" --size=10000
#part swap --bytes-per-inode=4096 --fstype="swap" --size=1000
#part /home --bytes-per-inode=4096 --fstype="ext3" --size=1000
#boot 100M 交换分区512M 其余的全部给 /分区 (见下面的分区配置)
%packages
@base-x
@gnome-desktop
@development-libs
@base
@admin-tools
@legacy-software-development
@openfabrics-enterprise-distribution
@office
@sound-and-video
@chinese-support
@gnome-software-development
@development-tools
@kde-desktop
@x-software-development
@java-development
@legacy-software-support
@kde-software-development
@system-tools
@editors
@graphical-internet
@text-internet
@ruby
@graphics
@dialup
@authoring-and-publishing
@emacs
@java
@games
@engineering-and-scientific