911ad9c2e6
Also add comments to the top of the example kickstarts describing how they are meant to be used and providing an example cmdline. In some cases, like rhel-minimal.ks, it can also be used for a live-iso but requires a couple of extra packages for that to work. Resolves: rhbz#1730937
68 lines
1.4 KiB
Plaintext
68 lines
1.4 KiB
Plaintext
# Minimal Disk Image
|
|
# NOTE: This example is for creating a qcow2 OpenStack disk image, eg.
|
|
# livemedia-creator --project RHEL --releasever 8 --make-disk --image-type=qcow2 --ks=rhel-openstack.ks --no-virt
|
|
#
|
|
# Firewall configuration
|
|
firewall --enabled
|
|
# Use network installation
|
|
url --url="http://URL-TO-BASEOS/"
|
|
repo --name=appstream --baseurl="http://URL-TO-APPSTREAM/"
|
|
# Network information
|
|
network --bootproto=dhcp --device=link --activate
|
|
|
|
# Root password
|
|
rootpw --plaintext replace-this-pw
|
|
# System keyboard
|
|
keyboard --xlayouts=us --vckeymap=us
|
|
# System language
|
|
lang en_US.UTF-8
|
|
# SELinux configuration
|
|
selinux --enforcing
|
|
# Installation logging level
|
|
logging --level=info
|
|
# Shutdown after installation
|
|
shutdown
|
|
# System timezone
|
|
timezone US/Eastern
|
|
# System bootloader configuration
|
|
bootloader --location=mbr
|
|
# Clear the Master Boot Record
|
|
zerombr
|
|
# Partition clearing information
|
|
clearpart --all
|
|
# Disk partitioning information
|
|
part / --fstype="ext4" --size=3000
|
|
|
|
%post
|
|
# Remove random-seed
|
|
rm /var/lib/systemd/random-seed
|
|
|
|
# Clear /etc/machine-id
|
|
rm /etc/machine-id
|
|
touch /etc/machine-id
|
|
%end
|
|
|
|
%packages
|
|
@core
|
|
kernel
|
|
# Make sure that DNF doesn't pull in debug kernel to satisfy kmod() requires
|
|
kernel-modules
|
|
kernel-modules-extra
|
|
|
|
memtest86+
|
|
grub2-efi
|
|
grub2
|
|
shim
|
|
syslinux
|
|
-dracut-config-rescue
|
|
|
|
# dracut needs these included
|
|
dracut-network
|
|
tar
|
|
|
|
# Openstack support
|
|
cloud-utils-growpart
|
|
cloud-init
|
|
|
|
%end
|