Advanced Partitioning Example21%includeUse the %include /path/to/file command to include the contents of another file in thekickstart file as though the contents were at the location of the %include command in thekickstart file.1.4.1. Advanced Partitioning ExampleThe following is a single, integrated example showing the clearpart, raid, part, volgroup, andlogvol kickstart options in action:clearpart --drives=hda,hdc --initlabel# Raid 1 IDE configpart raid.11 --size 1000 --asprimary --ondrive=hdapart raid.12 --size 1000 --asprimary --ondrive=hdapart raid.13 --size 2000 --asprimary --ondrive=hdapart raid.14 --size 8000 --ondrive=hdapart raid.15 --size 1 --grow --ondrive=hdapart raid.21 --size 1000 --asprimary --ondrive=hdcpart raid.22 --size 1000 --asprimary --ondrive=hdcpart raid.23 --size 2000 --asprimary --ondrive=hdcpart raid.24 --size 8000 --ondrive=hdcpart raid.25 --size 1 --grow --ondrive=hdc# You can add --spares=xraid / --fstype ext3 --device md0 --level=RAID1 raid.11 raid.21raid /safe --fstype ext3 --device md1 --level=RAID1 raid.12 raid.22raid swap --fstype swap --device md2 --level=RAID1 raid.13 raid.23raid /usr --fstype ext3 --device md3 --level=RAID1 raid.14 raid.24raid pv.01 --fstype ext3 --device md4 --level=RAID1 raid.15 raid.25# LVM configuration so that we can resize /var and /usr/local latervolgroup sysvg pv.01logvol /var --vgname=sysvg --size=8000 --name=varlogvol /var/freespace --vgname=sysvg --size=8000 --name=freespacetouselogvol /usr/local --vgname=sysvg --size=1 --grow --name=usrlocalThis advanced example implements LVM over RAID, as well as the ability to resize various directoriesfor future growth.1.5. Package SelectionUse the %packages command to begin a kickstart file section that lists the packages you would like toinstall (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 definesseveral groups that contain related packages. Refer to the RedHat/base/comps.xml file on thefirst 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 arealways installed if the group is selected, the packages marked default are selected by default if thegroup is selected, and the packages marked optional must be specifically selected even if the group isselected to be installed.