Skip to content

Instantly share code, notes, and snippets.

@tomwhoiscontrary
Created May 21, 2018 21:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tomwhoiscontrary/ca61ac69f34f2685d7f0f85dafe4208c to your computer and use it in GitHub Desktop.
Save tomwhoiscontrary/ca61ac69f34f2685d7f0f85dafe4208c to your computer and use it in GitHub Desktop.
my Kickstart file
#version=DEVEL
# System authorization information
auth --enableshadow --passalgo=sha512
# Use graphical install
graphical
# Use hard drive installation media
harddrive --dir=None --partition=/dev/mapper/live-base
# Run the Setup Agent on first boot
firstboot --enable
ignoredisk --only-use=sda
# Keyboard layouts
keyboard --vckeymap=gb --xlayouts='gb'
# System language
lang en_GB.UTF-8
# Network information
network --bootproto=dhcp --device=enp2s0f0 --ipv6=auto --activate
network --hostname=localhost.localdomain
#Root password
rootpw --lock
# System services
services --enabled="chronyd"
# System timezone
timezone Europe/London --isUtc
user --groups=wheel --name=twic --password=$6$REDACTED --iscrypted --gecos="Tom Anderson"
# X Window System configuration information
xconfig --startxonboot
# System bootloader configuration
bootloader --location=mbr --boot-drive=sda
# Partition clearing information
clearpart --none --initlabel
# Disk partitioning information
part /boot --fstype="xfs" --ondisk=sda --size=1024
part /boot/efi --fstype="macefi" --ondisk=sda --size=200 --label=Linux HFS+ ESP
part pv.249 --fstype="lvmpv" --ondisk=sda --size=242973 --encrypted
volgroup fedora --pesize=4096 pv.249
logvol /home --fstype="xfs" --grow --size=500 --name=home --vgname=fedora
logvol swap --fstype="swap" --size=8021 --name=swap --vgname=fedora
logvol / --fstype="xfs" --grow --size=1024 --name=root --vgname=fedora
%addon com_redhat_kdump --disable --reserve-mb='128'
%end
%anaconda
pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --emptyok
%end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment