#version=F26 # Keyboard layouts keyboard 'us' # Root password rootpw --iscrypted --lock locked # Use network installation url --url="http://8.131.87.1/kojifiles/output/product/an-8-8-GA/compose/BaseOS/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/output/product/an-8-8-GA/compose/BaseOS/aarch64/os repo --name="koji-override-1" --baseurl=http://8.131.87.1/kojifiles/output/product/an-8-8-GA/compose/AppStream/aarch64/os # Shutdown after installation shutdown # Network information network --bootproto=dhcp --device=link --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 -NetworkManager -NetworkManager-libnm -bpftool -brotli -crypto-policies-scripts -dejavu-fonts-common -dejavu-sans-fonts -diffutils -dosfstools -e2fsprogs -elfutils-debuginfod-client -firewalld -fontpackages-filesystem -fuse-libs -gettext -gettext* -gettext-libs -glibc-gconv-extra -glibc-langpack-en -gnupg2-smime -groff-base -grub2-common -grub2-tools -grub2-tools-minimal -grub\* -grubby -hardlink -iptables -iptables-libs -kbd -kbd-legacy -kbd-misc -kernel -kernel-devel -kernel-headers -kernel-tools -kernel-tools-libs -kpartx -langpacks-core-en -langpacks-core-font-en -libcroco -libcurl-minimal -libevent -libgomp -libibverbs -libmaxminddb -libmetalink -libmodulemd1 -libndp -libnl3 -libpcap -libsecret -libss -libxkbcommon -memstrack -numactl-libs -openssl-pkcs11 -os-prober -os-prober* -pciutils-libs -perf -perl-Carp -perl-Encode -perl-Errno -perl-Exporter -perl-File-Path -perl-File-Temp -perl-Getopt-Long -perl-HTTP-Tiny -perl-IO -perl-MIME-Base64 -perl-PathTools -perl-Pod-Escapes -perl-Pod-Perldoc -perl-Pod-Simple -perl-Pod-Usage -perl-Scalar-List-Utils -perl-Socket -perl-Storable -perl-Term-ANSIColor -perl-Term-Cap -perl-Text-ParseWords -perl-Text-Tabs+Wrap -perl-Time-Local -perl-Unicode-Normalize -perl-constant -perl-interpreter -perl-libs -perl-macros -perl-parent -perl-podlators -perl-threads -perl-threads-shared -pigz -pinentry -platform-python-pip -python3-perf -python3-unbound -qemu-guest-agent -rpm-plugin-systemd-inhibit -shared-mime-info -slang -trousers -trousers-lib -unbound-libs -which -xfsprogs -xkeyboard-config %end