#version=DEVEL # Keyboard layouts keyboard 'us' # Root password rootpw --iscrypted --lock locked # Use network installation url --url="http://kojipkgs.fedoraproject.org/compose/Fedora-Modular-27-20171204.n.1/compose/Server/armhfp/os" repo --name="koji-override-0" --baseurl=http://kojipkgs.fedoraproject.org/compose/Fedora-Modular-27-20171204.n.1/compose/Server/armhfp/os # Reboot after installation reboot # Network information network --bootproto=dhcp --device=link --activate # System timezone timezone Etc/UTC --isUtc --nontp # Use text mode install text # System bootloader configuration bootloader --disabled autopart --type=plain --nohome --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=1400682 echo "Import RPM GPG key" releasever=$(rpm -q --qf '%{version}\n' fedora-modular-release) 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/* #Mask mount units and getty service so that we don't get login prompt systemctl mask systemd-remount-fs.service dev-hugepages.mount sys-fs-fuse-connections.mount systemd-logind.service getty.target console-getty.service # https://bugzilla.redhat.com/show_bug.cgi?id=1343138 # Fix /run/lock breakage since it's not tmpfs in container # 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 systemd-tmpfiles --prefix=/run/ --prefix=/var/run/ --create --boot || true %end %packages --excludedocs --nocore --instLangs=en bash coreutils-single dnf dnf-yum fedora-modular-release glibc-minimal-langpack libcrypt rootfiles rpm shadow-utils sssd-client tar util-linux vim-minimal -dosfstools -e2fsprogs -fuse-libs -gnupg2-smime -kernel -libss -libusbx -pinentry -shared-mime-info -trousers -xkeyboard-config %end