Win7系统之家 网站地图| TAG标签| RSS订阅| 加入收藏

怎么样配置Kickstart脚本

  • 浏览:
  • |
  • 更新:

大家都了解,kickstart可用来智能化安装Linux系统,比手工安装速度更快,但为了更好的安装系统,需要对kickstart脚本进行配置,下面记者就给大伙介绍下配置kickstart脚本的办法,一块儿学习下吧。

配置kickstart脚本的办法

###############################################################

#

# Sample Kickstart Configuration File

#

###############################################################

###############################################################

#

# point to a local installation server, or use cdrom

#

###############################################################

url --url https://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 Instructors 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

#

###############################################################