Skip to content

Instantly share code, notes, and snippets.

@NickCrew
Created December 1, 2018 16:24
Show Gist options
  • Save NickCrew/29e74357efe483e99adeab151ae34b9e to your computer and use it in GitHub Desktop.
Save NickCrew/29e74357efe483e99adeab151ae34b9e to your computer and use it in GitHub Desktop.
(Red Hat) Kickstart - Auto-partition
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use CDROM installation media
#cdrom
# Run the Setup Agent on first boot
firstboot --disable
ignoredisk --only-use=vda
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# Network information
# network --bootproto=dhcp --device=eno1 --noipv6 --activate
network --hostname=katello.piggah.lan
# Root password
rootpw --plaintext centos
# System services
services --enabled="chronyd"
# System timezone
timezone America/New_York --isUtc
user --groups=wheel --name=nick --password=PASSWORD
# SELinux
selinux --disable
firewall --disable
# System bootloader configuration
bootloader --location=mbr --driveorder=vda --append="console=ttyS0 crashkernel=auto"
# Partition clearing information
clearpart --all --initlabel --drives=vda
autopart
shutdown
%packages
@^minimal
@core
chrony
kexec-tools
%end
%addon com_redhat_kdump --enable --reserve-mb='auto'
# Use this kdump setting if Fedora
# %addon com_redhat_kdump --disable --reserve-mb='128'
%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