Centos6 Kickstart文件

参考链接:https://people.centos.org/jperrin/Kickstart2.html
参考链接:https://www.linuxidc.com/Linux/2017-08/146168.htm
# kstart file automatically generated by anaconda.
i#nstall
#cdrom
# 文本界面text 设置graphical则为图形化界面
text
lang en_US.UTF-8
keyboard us
network --onboot no --device eth0 --bootproto dhcp --noipv6
#root password 123456
rootpw --iscrypted $6$sazpQ1mq5PsmMZli$/T4U.ni5RDc35EsaT6B/d3s97o3Fb5/5GXW55IAjMP1Yt5ziayWW5yUeGuFTrVpkpswuVfEdZPNjr4LL9ZcTJ0
firewall --service=ssh
authconfig --enableshadow --passalgo=sha512
selinux --disabled
services --disabled="NetworkManager"
timezone --utc Asia/Shanghai
bootloader --location=mbr --driveorder=sda --append="crashkernel=auto rhgb quiet"
# disk partition
clearpart --all --initlabel --drives=sda
ignoredisk --only-use=sda
part /boot --fstype=ext4 --size=500
part swap --size=2048
part / --fstype=ext4 --grow --size=200

#repo --name="CentOS" --baseurl=cdrom:sr0 --cost=100
reboot
# packages of mini install
%packages
@additional-devel
@chinese-support
@core
@development
@eclipse
@server-platform-devel
@server-policy
@workstation-policy
libgcrypt-devel
libXinerama-devel
xorg-x11-proto-devel
startup-notification-devel
libgnomeui-devel
libbonobo-devel
junit
libXau-devel
libXrandr-devel
popt-devel
libxslt-devel
libglade2-devel
gnutls-devel
ant
rpmdevtools
jpackage-utils
rpmlint
%end

posted @ 2019-09-08 14:52  larry-peng  阅读(250)  评论(0编辑  收藏  举报