2021-06-25 16:00:39 +00:00
|
|
|
install
|
|
|
|
keyboard us --xlayouts=us --vckeymap=us
|
2021-06-25 19:49:11 +00:00
|
|
|
rootpw --lock
|
2021-06-26 13:04:06 +00:00
|
|
|
user --name=rocky --password=rockylinux --gecos="Rocky default user" --groups=wheel --uid=1000 --gid=1000
|
2021-06-25 16:00:39 +00:00
|
|
|
timezone --isUtc --nontp UTC
|
|
|
|
selinux --enforcing
|
|
|
|
firewall --enabled --port=22:tcp
|
|
|
|
network --bootproto=dhcp --device=link --activate --onboot=on
|
|
|
|
services --enabled=sshd,NetworkManager,chronyd
|
|
|
|
shutdown
|
|
|
|
bootloader --location=mbr --extlinux
|
|
|
|
lang en_US.UTF-8
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
|
|
|
# Enabling chronyd on boot
|
|
|
|
systemctl enable chronyd
|
|
|
|
|
|
|
|
|
|
|
|
# Remove ifcfg-link on pre generated images
|
|
|
|
rm -f /etc/sysconfig/network-scripts/ifcfg-link
|
|
|
|
|
|
|
|
# Remove machine-id on pre generated images
|
|
|
|
rm -f /etc/machine-id
|
|
|
|
touch /etc/machine-id
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%end
|