Advanced Partitioning Example; Package Selection - Red Hat ENTERPRISE LINUX 4 System Administration Manual

Hide thumbs Also See for ENTERPRISE LINUX 4:
Table of Contents

Advertisement

%include
Use the %include /path/to/file command to include the contents of another file in the
kickstart file as though the contents were at the location of the %include command in the
kickstart file.

1.4.1. Advanced Partitioning Example

The following is a single, integrated example showing the clearpart, raid, part, volgroup, and
logvol kickstart options in action:
clearpart --drives=hda,hdc --initlabel
# Raid 1 IDE config
part raid.11
--size 1000
part raid.12
--size 1000
part raid.13
--size 2000
part raid.14
--size 8000
part raid.15
--size 1 --grow
part raid.21
--size 1000
part raid.22
--size 1000
part raid.23
--size 2000
part raid.24
--size 8000
part raid.25
--size 1 --grow
# You can add --spares=x
raid /
--fstype ext3 --device md0 --level=RAID1 raid.11 raid.21
raid /safe
--fstype ext3 --device md1 --level=RAID1 raid.12 raid.22
raid swap
--fstype swap --device md2 --level=RAID1 raid.13 raid.23
raid /usr
--fstype ext3 --device md3 --level=RAID1 raid.14 raid.24
raid pv.01
--fstype ext3 --device md4 --level=RAID1 raid.15 raid.25
# LVM configuration so that we can resize /var and /usr/local later
volgroup sysvg pv.01
logvol /var
logvol /var/freespace
logvol /usr/local
This advanced example implements LVM over RAID, as well as the ability to resize various directories
for future growth.

1.5. Package Selection

Use the %packages command to begin a kickstart file section that lists the packages you would like to
install (this is for installations only, as package selection during upgrades is not supported).
Packages can be specified by group or by individual package name. The installation program defines
several groups that contain related packages. Refer to the RedHat/base/comps.xml file on the
first Red Hat Enterprise Linux CD-ROM for a list of groups. Each group has an id, user visibility value,
name, description, and package list. In the package list, the packages marked as mandatory are
always installed if the group is selected, the packages marked default are selected by default if the
group is selected, and the packages marked optional must be specifically selected even if the group is
selected to be installed.
--asprimary
--asprimary
--asprimary
--asprimary
--asprimary
--asprimary
--vgname=sysvg
--size=8000
--vgname=sysvg
--size=8000
--vgname=sysvg
--size=1 --grow --name=usrlocal
Advanced Partitioning Example
--ondrive=hda
--ondrive=hda
--ondrive=hda
--ondrive=hda
--ondrive=hda
--ondrive=hdc
--ondrive=hdc
--ondrive=hdc
--ondrive=hdc
--ondrive=hdc
--name=var
--name=freespacetouse
21

Advertisement

Table of Contents
loading

Table of Contents