35 lines
1.7 KiB
Markdown
35 lines
1.7 KiB
Markdown
# Kinkstart
|
|
|
|
## ERB Syntax
|
|
Kickstart uses ERB (embeddable Ruby) syntax.
|
|
|
|
ERB appears to be Ruby's answer to Python's jinja2 and Rust's Tera template system. It is used by many items within the Satellite/Foreman/Puppet ecosystem.
|
|
|
|
|
|
## Partition Tables
|
|
|
|
> Note: Within RH Satellite, the "snippet" option can be used to specify that a partition table is a snippet that can be used inside of another partition table.
|
|
|
|
Partition tables take the form of ERB syntax.
|
|
|
|
- `zerombr` - clears invalid partitions, **used to prevent clearpart from waiting for input**
|
|
- `clearpart` - removes partitions
|
|
`--all` - remove all partitions from all disks
|
|
`--initlabel` - reinitialize labels for partitions
|
|
`--drives=...` - specify drives to clear
|
|
- `autopart` - automatic best-effort partitioning. creates /, /boot, and a swap partition. creates /home on disks larger than 50GB
|
|
`--type=...` - select partitioning scheme type (lvm, lvm-thin, plain, etc)
|
|
`--nohome` - do not create a /home parition
|
|
`--nolvm` - shorthand for `--type=plain`
|
|
`--fstype=...` - specify filesystem type (xfs, ext4, etc...)
|
|
- `reqpart` - create required partitions for the platform such as /efi, biosboot, etc..
|
|
`--add-boot` - create /boot regardless of if it is needed or not
|
|
- `part <mountpoint>` - create a partition to be mounted at *mountpoint*
|
|
`--size` - minimum size in MiB, must be an integer with no units
|
|
`--grow` - grow the partition to take up the remaining space on the disk
|
|
`--ondisk` - create the partition on a specific disk
|
|
`--fsprofile=...` - use a specific filesystem profile (FS must support usage profiles)
|
|
`--mkfsoptions=...` - options to pass to mkfs
|
|
`--fstype=...` - ext4, xfs, etc...
|
|
`--fsoptions` - options to pass when *mounting* the filesystem
|