Skip to content

Instantly share code, notes, and snippets.

@martezr
Created June 13, 2019 01:44
Show Gist options
  • Save martezr/3ae06b914daf43de7c198cbfa62a5503 to your computer and use it in GitHub Desktop.
Save martezr/3ae06b914daf43de7c198cbfa62a5503 to your computer and use it in GitHub Desktop.
RHEL 8 Kickstart
#version=RHEL8
ignoredisk --only-use=sda
autopart --type=lvm
# Partition clearing information
clearpart --none --initlabel
# Use text install
text
repo --name="AppStream" --baseurl=file:///run/install/repo/AppStream
# Use CDROM installation media
cdrom
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# Network information
network --bootproto=dhcp --device=ens192 --ipv6=auto --activate
network --hostname=localhost.localdomain
# Root password
rootpw --iscrypted $6$g3u9VWmoMgqUdTfy$iHkfa6g.r6iNBdD6wg7NyNUfgFMTR7KIsHWT5b4imv9grznx35DUE5ubanCxV.SQ/9nwM/hrYr0Kot0mxU2hK/
# Run the Setup Agent on first boot
firstboot --enable
# Do not configure the X Window System
skipx
# System services
services --disabled="chronyd"
# System timezone
timezone America/Chicago --isUtc --nontp
%packages
@^server-product-environment
kexec-tools
%end
%addon com_redhat_kdump --enable --reserve-mb='auto'
%end
%anaconda
pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment