Skip to content

Instantly share code, notes, and snippets.

@OrvilleQ
Last active October 18, 2019 07:50
Show Gist options
  • Save OrvilleQ/7008ad1765cd658b0a52760a4ba476eb to your computer and use it in GitHub Desktop.
Save OrvilleQ/7008ad1765cd658b0a52760a4ba476eb to your computer and use it in GitHub Desktop.
#version=RHEL8
ignoredisk --only-use=vda
# Partition clearing information
clearpart --all --initlabel --drives=vda
# Use graphical install
graphical
repo --name="AppStream" --baseurl=http://mirror.centos.org/centos/8.0.1905/BaseOS/x86_64/os/../../../AppStream/x86_64/os/
# Use network installation
url --url="http://mirror.centos.org/centos/8.0.1905/BaseOS/x86_64/os"
# Keyboard layouts
keyboard --vckeymap=us --xlayouts='us'
# System language
lang en_US.UTF-8
# Network information
network --bootproto=static --device=ens3 --gateway=173.82.151.1 --ip=173.82.151.192 --nameserver=1.1.1.1,1.0.0.1,2606:4700:4700::1111,1606:4700:4700::1001 --netmask=255.255.255.0 --ipv6=2607:f130:0:d7::c7f/64 --activate --ipv6gateway=2607:f130:0:d7::1
network --hostname=los00.svr.anislet.me
# Root password
rootpw --iscrypted $6$uP67D49T48HOgGAX$MkJSNtWqS8gOEj1QNhELcuHfei78LhKWLbqOXqnJjYyjimGwUoUnsqVau1FCavfAnfwyHbVEUDhwH4MSkCsLA0
# Run the Setup Agent on first boot
firstboot --enable
# Do not configure the X Window System
skipx
# System services
services --enabled="chronyd"
# System timezone
timezone America/Los_Angeles --isUtc
user --groups=wheel --name=orwill --password=$6$EIPucdhQwWE7sqm1$lvS3uyAwnKqU3U9WxasPJ06pg9qTZLk/UX7RLHpuVAG7HK/Sttwivfh1dav4Xw0WjucDbUlYb4Hj4qmnJrEJo. --iscrypted --gecos="Orwill Towne"
# Disk partitioning information
part /boot --fstype="ext4" --ondisk=vda --size=512
part pv.273 --fstype="lvmpv" --ondisk=vda --size=76287 --encrypted --luks-version=luks1
volgroup cl_los00 --pesize=4096 pv.273
logvol / --fstype="xfs" --size=7680 --name=root --vgname=cl_los00
%packages
@^minimal-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