# Generated by pykickstart v3.29 #version=DEVEL # Keyboard layouts keyboard 'us' # Root password rootpw --iscrypted --lock locked # Reboot after installation reboot # Use text mode install text # Network information network --bootproto=dhcp --device=link --activate # Use network installation url --url="https://kojipkgs.fedoraproject.org/compose/33/latest-Fedora-33/compose/Everything/x86_64/os/" repo --name="koji-override-0" --baseurl=https://kojipkgs.fedoraproject.org/compose/updates/f33-updates/compose/Everything/x86_64/os/ repo --name="koji-override-1" --baseurl=https://kojipkgs.fedoraproject.org/compose/33/latest-Fedora-33/compose/Everything/x86_64/os/ # System timezone timezone Etc/UTC --utc --nontp # System bootloader configuration bootloader --disabled autopart --type=plain --nohome --noboot --noswap # Clear the Master Boot Record zerombr # Partition clearing information clearpart --all %post --logfile=/root/anaconda-post.log --erroronfail set -eux # Set install langs macro so that new rpms that get installed will # only install langs that we limit it to. LANG="en_US" echo "%_install_langs $LANG" > /etc/rpm/macros.image-language-conf # https://bugzilla.redhat.com/show_bug.cgi?id=1727489 echo 'LANG="C.UTF-8"' > /etc/locale.conf # https://bugzilla.redhat.com/show_bug.cgi?id=1400682 echo "Import RPM GPG key" releasever=$(rpm --eval '%{fedora}') rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-primary echo "# fstab intentionally empty for containers" > /etc/fstab # Remove machine-id on pre generated images rm -f /etc/machine-id touch /etc/machine-id %end %post --logfile=/root/anaconda-post.log --erroronfail # remove some extraneous files rm -rf /var/cache/dnf/* rm -rf /tmp/* # https://pagure.io/atomic-wg/issue/308 printf "tsflags=nodocs\n" >>/etc/dnf/dnf.conf # https://bugzilla.redhat.com/show_bug.cgi?id=1343138 # Fix /run/lock breakage since it's not tmpfs in docker # This unmounts /run (tmpfs) and then recreates the files # in the /run directory on the root filesystem of the container # # We ignore the return code of the systemd-tmpfiles command because # at this point we have already removed the /etc/machine-id and all # tmpfiles lines with %m in them will fail and cause a bad return # code. Example failure: # [/usr/lib/tmpfiles.d/systemd.conf:26] Failed to replace specifiers: /run/log/journal/%m # umount /run rm /run/nologin # https://pagure.io/atomic-wg/issue/316 # Final pruning rm -rfv /var/cache/* /var/log/* /tmp/* %end %post --nochroot --logfile=/mnt/sysimage/root/anaconda-post-nochroot.log --erroronfail set -eux # See: https://bugzilla.redhat.com/show_bug.cgi?id=1051816 # NOTE: run this in nochroot because "find" does not exist in chroot KEEPLANG=en_US for dir in locale i18n; do find /mnt/sysimage/usr/share/${dir} -mindepth 1 -maxdepth 1 -type d -not \( -name "${KEEPLANG}" -o -name POSIX \) -exec rm -rfv {} + done %end %packages --excludedocs --nocore --inst-langs=en --exclude-weakdeps bash coreutils dnf dnf-yum fedora-release-container fedora-repos-modular glibc-minimal-langpack rootfiles rpm shadow-utils sssd-client sudo tar util-linux vim-minimal -cracklib-dicts -dosfstools -e2fsprogs -fuse-libs -glibc-langpack-en -gnupg2-smime -grubby -kernel -langpacks-en -libss -pinentry -shared-mime-info -trousers -xkeyboard-config %end