#version=DEVEL # Keyboard layouts keyboard 'us' # Root password rootpw --iscrypted --lock locked # Use network installation url --url="http://172.22.0.123/compose/trees/CentOS-Stream-8-20200101.1/compose/BaseOS/x86_64/os" # System language lang en_US.UTF-8 # Firewall configuration firewall --disabled repo --name="koji-override-0" --baseurl=http://172.22.0.123/compose/trees/CentOS-Stream-8-20200101.1/compose/BaseOS/x86_64/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 ignoredisk --only-use=vda # System bootloader configuration bootloader --disabled # Clear the Master Boot Record zerombr # Partition clearing information clearpart --all --initlabel # Disk partitioning information part / --fstype="ext4" --ondisk=vda --size=8000 %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 --instLangs=en --excludeWeakdeps bash binutils centos-release 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