lorax/docs/rhel-minimal.ks
Brian C. Lane ea77b0da20 Increase example kickstart root partitions to at least 4000MB
Anaconda needs enough space to download the rpms and install the packages
when running livemedia-creator with virt mode so the / partition needs
to be larger.

Resolves: rhbz#1973407
2021-07-06 16:34:22 -07:00

70 lines
1.4 KiB
Plaintext

# Minimal Disk Image
# NOTE: This example is for creating a disk image, eg.
# livemedia-creator --project RHEL --releasever 8 --make-disk --ks=rhel-minimal.ks --no-virt
#
# Using it for a live-iso will require adding:
# dracut-live
# system-logos
#
# 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 removethispw
# 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
# Partition clearing information
clearpart --all --initlabel
# Disk partitioning information
part / --fstype="ext4" --size=4000
part swap --size=512
%post
# Remove root password
passwd -d root > /dev/null
# 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
%end