我们都知道,kickstart可用来自动化安装Linux系统,比手动安装速度更快,但是为了更好的安装系统,需要对kickstart脚本进行配置,下面小编就给大家介绍下配置kickstart脚本的方法,一起来学习下吧。

配置kickstart脚本的方法
###############################################################
#
# Sample Kickstart Configuration File
#
###############################################################
###############################################################
#
# point to a local installation server, or use “cdrom”
#
###############################################################
url –url http://rha-server/pub/rhel5/
#cdrom
rootpw RedHat
bootloader –location=mbr –password=redhat
###############################################################
#
# partitioning
#
###############################################################
zerombr yes
clearpart –all –initlabel
part /boot –fstype ext3 –size 128
part / –fstype ext3 –size 1 –grow
part swap –recommended
###############################################################
#
# network configuration
# – the following is for the “recommended solution” outlined
# in the Red Hat Academy Instructor‘s Guide
#
###############################################################
network –bootproto=dhcp –device=eth0
firewall –disabled
#network –bootproto=static –ip=192.168.0.254 –netmask=255.255.255.0
–device=eth0
#firewall –medium –http –port=https:tcp
###############################################################
#
# environment
#
###############################################################
未经允许不得转载:系统吧-电脑系统大神 » 如何配置Kickstart脚本
微信关注,获取更多