summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Janczyk2024-09-12 18:45:50 +0200
committerMichael Janczyk2024-09-12 18:45:50 +0200
commit8cd30b71b3fa40b6e10f8f7ac154f0831aaa8320 (patch)
tree70a181e1c97e80cf8f8ff21eac6ed435e0b784d0
parentalma/rocky-centos-9: anaconda-ks: disable selinux. (diff)
downloadpacker-templates-8cd30b71b3fa40b6e10f8f7ac154f0831aaa8320.tar.gz
packer-templates-8cd30b71b3fa40b6e10f8f7ac154f0831aaa8320.tar.xz
packer-templates-8cd30b71b3fa40b6e10f8f7ac154f0831aaa8320.zip
chore(centos9): Update CentOS anaconda-ks.cfg.hcl2
-rw-r--r--centos-9-x86_64/http/anaconda-ks.cfg26
1 files changed, 16 insertions, 10 deletions
diff --git a/centos-9-x86_64/http/anaconda-ks.cfg b/centos-9-x86_64/http/anaconda-ks.cfg
index afe1847..4446c7c 100644
--- a/centos-9-x86_64/http/anaconda-ks.cfg
+++ b/centos-9-x86_64/http/anaconda-ks.cfg
@@ -1,18 +1,22 @@
+text
+reboot
+url --url=http://mirror1.hs-esslingen.de/pub/Mirrors/centos-stream/9-stream/BaseOS/x86_64/os/
+lang en_US.UTF-8
+keyboard --vckeymap=us --xlayouts='us'
+timezone Europe/Berlin --utc
clearpart --none --initlabel
bootloader --location=mbr --boot-drive=sda
part biosboot --fstype=biosboot --ondisk=sda --size=1
part / --fstype=xfs --asprimary --ondisk=sda --grow --label=SLX_SYS
-lang en_US.UTF-8
-keyboard --vckeymap=us --xlayouts='us'
-timezone Europe/Berlin --utc --nontp
-text
selinux --disabled
-reboot
-
%packages
-@core
+@^minimal-environment
+@standard
+perl
+strace
%end
+
%pre --interpreter=/usr/bin/perl
use strict;
use warnings;
@@ -38,13 +42,15 @@ close($fp);
%post --erroronfail
set -x
-parted -s /dev/sda -- name 2 SLX_SYS
-dnf -y install epel-release
+dnf -y install curl git python3 vim wget
dnf -y update
-dnf clean all
+dnf -y clean all
# allow root login for ansible
sed -i 's,^[[:blank:]]*#*PermitRootLogin.*,PermitRootLogin yes,g' /etc/ssh/sshd_config
+echo "PermitRootLogin yes" >> /etc/ssh/sshd_config
+echo "Port 22" >> /etc/ssh/sshd_config
+systemctl restart sshd
ln -s /dev/null /etc/udev/rules.d/80-net-name-slot.rules
cat > /etc/sysconfig/network-scripts/ifcfg-eth0 <<EOF