#version=F26 # Keyboard layouts keyboard 'us' # Root password rootpw --iscrypted --lock locked # Use network installation url --url="http://8.131.87.1/kojifiles/output/anolis-23-20240425.3/compose/os/aarch64/os" # System language lang en_US.UTF-8 # Firewall configuration firewall --disabled repo --name="koji-override-0" --baseurl=http://8.131.87.1/kojifiles/repos/dist-an23-build-python3.11/latest/$basearch/ # Shutdown after installation shutdown # Network information network --bootproto=dhcp --device=link --nameserver=8.8.8.8 --activate # System timezone timezone UTC --isUtc --nontp # Use text mode install text # SELinux configuration selinux --enforcing # System bootloader configuration bootloader --disabled autopart --type=plain --fstype=ext4 --nohome --noboot --noswap # Clear the Master Boot Record zerombr # Partition clearing information clearpart --all --initlabel %post --logfile=/root/anaconda-post.log --erroronfail # container customizations inside the chroot echo 'container' > /etc/dnf/vars/infra #Generate installtime file record /bin/date +%Y%m%d_%H%M > /etc/BUILDTIME # Limit languages to help reduce size. LANG="en_US" echo "%_install_langs $LANG" > /etc/rpm/macros.image-language-conf # systemd fixes :> /etc/machine-id umount /run systemd-tmpfiles --create --boot # mask mounts and login bits systemctl mask systemd-logind.service getty.target console-getty.service sys-fs-fuse-connections.mount systemd-remount-fs.service dev-hugepages.mount # Remove things we don't need rm -f /etc/udev/hwdb.bin rm -rf /usr/lib/udev/hwdb.d/ rm -rf /boot rm -rf /var/lib/dnf/history.* %end %packages --excludedocs --nocore --ignoremissing --instLangs=en --excludeWeakdeps anolis-release bash binutils coreutils-single glibc-minimal-langpack hostname iputils less rootfiles tar vim-minimal yum -brotli -dosfstools -e2fsprogs -firewalld -fuse-libs -gettext* -gnupg2-smime -grub\* -iptables -kernel -libss -os-prober* -pinentry -qemu-guest-agent -shared-mime-info -trousers -xfsprogs -xkeyboard-config %end