# This is a minimal kickstart designed for docker. # It will not produce a bootable system # To use this kickstart, run the following command # livemedia-creator --make-tar \ # --iso=/path/to/boot.iso \ # --ks=anolis-23.ks \ # --image-name=anolis-root.tar.xz # # Basic setup information text keyboard us rootpw --lock --iscrypted locked timezone --isUtc --nontp UTC selinux --enforcing firewall --disabled network --bootproto=dhcp --device=link --activate --onboot=on --nameserver='8.8.8.8' shutdown bootloader --disable lang en_US.UTF-8 # Disk setup zerombr clearpart --all --initlabel autopart --noboot --nohome --noswap --nolvm --fstype=ext4 # Package setup %packages --excludedocs --instLangs=en --nocore --excludeWeakdeps --ignoremissing anolis-release binutils -brotli bash hostname rootfiles coreutils-single glibc-minimal-langpack rpm dnf -gettext* -firewalld -os-prober* -iptables -kernel -dosfstools -e2fsprogs -fuse-libs -gnupg2-smime -libss -pinentry -shared-mime-info -trousers -xkeyboard-config -xfsprogs -qemu-guest-agent -grub\* -systemd %end %post --erroronfail --log=/root/anaconda-post.log # 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 # 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.* rm -rf /usr/share/man rm -rf /usr/share/doc rm -rf /usr/share/magic rm -rf /usr/share/misc rm -rf /usr/share/ rm -rf /usr/lib/compatibility/ rm -rf /usr/lib/.build-id find ./ -name '__pycache__' | xargs rm -rf %end