install keyboard us --xlayouts=us --vckeymap=us rootpw --plaintext rocky 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 # Mandatory README file cat >/root/README << EOF == Rocky 8 Raspberry Pi Image (experimental) == This is a minimal Rocky 8 install intended for Raspberry Pi 4 devices (architecture is aarch64). It should work similarly to any other aarch64 device. There is a special repository added that contains raspberry pi specific kernel builds. If you want to automatically resize your / partition, just type the following (as root user): rootfs-expand EOF # 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 # Specific cmdline.txt files needed for raspberrypi2/3/4 cat > /boot/cmdline.txt << EOF console=ttyAMA0,115200 console=tty1 root=LABEL=rootfs rootfstype=ext4 elevator=deadline rootwait EOF %end