#文本模式安装
Text
# keyboard
Keyboard US
Language
Lang en_US
#langsupport--default en_US ZH_CN
#网口
Network--device eth0--bootproto DHCP
#network--device eth1--bootproto DHCP
# OS ISO mounted files are copied here
URL--url http://192.168.1.2/data/
# time Zone
TimeZone Asia/shanghai
# User Password
ROOTPW Your_password
#禁用防火墙
Firewall--disabled
#认证方式
Authconfig--enableshadow--ENABLEMD5
#禁用selinux
SELinux--disabled
#跳过安装过程中的图形窗口
Skipx
# Install Bootloader
Bootloader
#重启OS
Reboot
# empty MBR
ZEROMBR Yes
# Delete all partitions on disk
Clearpart--all
Partition The size unit Mb;--grow indicates that all remaining disk space is used, obviously only last.
Part/boot--fstype Ext4--size=500
Part swap--size=2048
Part/--fstype Ext4--size=2048
Part/opt--fstype ext4--size=200--grow
#安装软件包. Hardware-related monitoring and time synchronization services are essential. @base indicates that the base package group is installed.
%packages
Lm_sensors
Ntp
@base
%pre
%post
CentOS 6.x Kickstart Configuration example