2024-03-22 23:47:35 +01:00
|
|
|
# AlmaLinux 9 kickstart file for Generic Cloud (OpenStack) x86-64-v2 image
|
|
|
|
|
|
|
|
url --url https://repo.almalinux.org/almalinux/9/BaseOS/x86_64/kickstart/
|
|
|
|
repo --name=BaseOS --baseurl=https://repo.almalinux.org/almalinux/9/BaseOS/x86_64/os/
|
|
|
|
repo --name=AppStream --baseurl=https://repo.almalinux.org/almalinux/9/AppStream/x86_64/os/
|
|
|
|
|
|
|
|
text
|
|
|
|
skipx
|
|
|
|
eula --agreed
|
|
|
|
firstboot --disabled
|
|
|
|
|
|
|
|
lang en_US
|
|
|
|
keyboard --xlayouts='us'
|
|
|
|
timezone Europe/Brussels --utc
|
|
|
|
|
|
|
|
network --bootproto=dhcp
|
|
|
|
firewall --enabled --service=ssh
|
|
|
|
selinux --enforcing
|
|
|
|
|
|
|
|
bootloader --timeout=1 --location=mbr --append="console=tty0 console=ttyS0,115200n8 no_timer_check crashkernel=auto net.ifnames=0" --iscrypted --password=${grub_password}
|
|
|
|
|
|
|
|
%pre --erroronfail
|
|
|
|
|
|
|
|
parted -s -a optimal /dev/vda -- mklabel gpt
|
|
|
|
parted -s -a optimal /dev/vda -- mkpart biosboot 1MiB 2MiB set 1 bios_grub on
|
|
|
|
parted -s -a optimal /dev/vda -- mkpart '"EFI System Partition"' fat32 2MiB 202MiB set 2 esp on
|
|
|
|
parted -s -a optimal /dev/vda -- mkpart boot xfs 202MiB 714MiB
|
|
|
|
parted -s -a optimal /dev/vda -- mkpart root xfs 714MiB 100%
|
|
|
|
|
|
|
|
%end
|
|
|
|
|
|
|
|
part biosboot --fstype=biosboot --onpart=vda1
|
|
|
|
part /boot/efi --fstype=efi --onpart=vda2
|
|
|
|
part /boot --fstype=xfs --onpart=vda3
|
|
|
|
part / --fstype=xfs --onpart=vda4
|
|
|
|
|
|
|
|
rootpw ${password_crypt} --iscrypted
|
2024-03-23 22:55:44 +01:00
|
|
|
user --name=${user} --password=${password_crypt} --groups=wheel --iscrypted
|
2024-03-22 23:47:35 +01:00
|
|
|
|
|
|
|
reboot
|
|
|
|
|
|
|
|
|
|
|
|
%packages
|
|
|
|
@core
|
|
|
|
dracut-config-generic
|
|
|
|
grub2-pc
|
|
|
|
usermode
|
|
|
|
qemu-guest-agent
|
|
|
|
cloud-init
|
|
|
|
-iwl*-firmware
|
|
|
|
-cronie
|
|
|
|
-chrony
|
|
|
|
-mdadm
|
|
|
|
|
|
|
|
%end
|
|
|
|
|
|
|
|
%addon com_redhat_kdump --disable
|
|
|
|
%end
|
|
|
|
|
|
|
|
%post --erroronfail
|
|
|
|
|
|
|
|
grub2-install --target=i386-pc /dev/vda
|
|
|
|
|
2024-03-23 22:55:44 +01:00
|
|
|
mkdir -m0700 /home/${user}/.ssh/
|
|
|
|
cat <<EOF >/home/${user}/.ssh/authorized_keys
|
|
|
|
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAILBPOnqmExTKt8OceAq9K4d/MkVu4WsU+sqiEV7KbtyH
|
|
|
|
EOF
|
|
|
|
chmod 0600 /home/${user}/.ssh/authorized_keys
|
|
|
|
chown -R ${user}:${user} /home/${user}/.ssh
|
2024-03-22 23:47:35 +01:00
|
|
|
|
|
|
|
%end
|