这个文件在自动安装和定制化安装中的作用详解:
这个配置文件经修改之后可以用于雷同环境下,使用Kickstart来自动安装大量同样的操作系统,
可以把这个文件经修改之后放入U盘,命名为ks.cfg
在装系统时,出现boot界面时就可以输入:
#ks的路径视你的U盘的为哪个盘而定
linux ks=/dev/sdb:/yourpath/ks.cfg
也可以放入nfs服务器,通过网络安装,出现boot界面时就可以输入:
linux ks=nfs:servername:/yourpath/ks.cfg
# Kickstart file automatically generated by anaconda.
install
#iso源的位置,iso源可以是[url][nfs][cdrom]
url –url http://192.168.10.183/centos
#nfs –server=192.168.13.99 –dir=/home/iso
#cdrom
#安装时选择的语言和键盘布局
lang zh_CN.UTF-8
keyboard us
#网络配置信息
network –device eth0 –bootproto static –ip 192.168.10.99 –netmask 255.255.255.0 –gateway 192.168.10.254 –hostname prd-db-1.ushi.cn –nameserver 8.8.4.4
#network –bootproto dhcp –hostname rui.good.com
#network –device eth1 –onboot no –bootproto dhcp –hostname prd-db-1.ushi.cn
#network –device eth2 –onboot no –bootproto dhcp –hostname prd-db-1.ushi.cn
#network –device eth3 –onboot no –bootproto dhcp –hostname prd-db-1.ushi.cnnetwork –device eth0 –bootproto static –ip 10.0.0.241 –netmask 255.255.255.0 –gateway 10.0.0.1 –nameserver 8.8.8.8
#root密码
rootpw –iscrypted $1$4jERVrj5$elgaQckHdgwlddNv6T6Py1
#防火墙开启的端口
firewall –disabled
#认证加密方法
authconfig –enableshadow –enablemd5
#selinux的配置信息
selinux –disabled
timezone –utc Asia/Shanghai
#启动引导分区
bootloader –location=mbr –driveorder=sda –append=”rhgb quiet”
# 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 –all –initlabel
zerombr
part /boot –fstype ext3 –size=100
part pv.26 –size=100 –grow
volgroup VolGroup00 –pesize=32768 pv.26
logvol / –fstype ext3 –name=LogVol00 –vgname=VolGroup00 –size=29984
logvol swap –fstype swap –name=LogVol01 –vgname=VolGroup00 –size=1984
logvol /data –fstype ext3 –name=LogVol02 –vgname=VolGroup00 –size=100 –grow
reboot
%packages
@base
@chinese-support
@core
development-libs
development-tools
@editors
@gnome-desktop
@games
@graphical-internet
@graphics
@kvm
@mail-server
@sound-and-video
@system-tools
@text-internet
@base-x
keyutils
iscsi-initiator-utils
trousers
bridge-utils
fipscheck
device-mapper-multipath
imake
libsane-hpaio
audit
sysstat
xorg-x11-server-Xnest
xorg-x11-server-Xvfb
#end
@为不安装的包
其他为安装的包