text lang en_US.UTF-8 keyboard us timezone --utc Etc/UTC auth --useshadow --passalgo=sha512 selinux --enforcing rootpw --lock --iscrypted locked #firewall --enabled --service=mdns firewall --disabled #services --enabled=sshd,NetworkManager,chronyd,initial-setup network --bootproto=dhcp --device=link --activate --onboot=on shutdown #bootloader --timeout=1 --append="no_timer_check console=tty1 console=ttyS0, 115200n8"# --location=mbr bootloader --append="console=tty1 console=ttyS0 115200n8" --location=mbr zerombr clearpart --all #--initlabel --disklabel=msdos # make sure that initial-setup runs and let's us do all the configuration bits firstboot --reconfig #firstboot --disable autopart --type=plain reboot repo --name=fedora --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch repo --name=updates --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=updates-released-f$releasever&arch=$basearch url --mirrorlist=https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&arch=$basearch %packages --excludedocs --nocore --instLangs=en --excludeWeakdeps bash microdnf filesystem coreutils-single glibc-minimal-langpack libcrypt rpm shadow-utils util-linux sssd-client #@hardware-support kernel #grub2 # remove this in %post #dracut-config-generic -dracut-config-rescue #rootfiles # install tools need to manage and boot arm systems #@arm-tools #rng-tools #chrony #bcm283x-firmware #uboot-images-armv8 -uboot-images-armv7 #initial-setup -initial-setup-gui -glibc-all-langpacks #glibc-langpack-en #iw #NetworkManager-wifi -iwl* -ipw -trousers-lib -generic-release* -fedora-logos -fedora-release-notes # make sure all the locales are available for initial-setup and anaconda to work #glibc-all-langpacks # workaround as consequence of RHBZ #1324623: without this, with yum-based creation tools, compose fails due to conflict between libcrypt and libcrypt-nss. dnf does not seem to have the same issue, so this may be dropped when appliance-creator is ported to dnf. #libcrypt-nss #-libcrypt %end %post # Setup Raspberry Pi firmware cp -Pr /usr/share/bcm283x-firmware/* /boot/efi/ mv -f /boot/efi/config-64.txt /boot/efi/config.txt cp -P /usr/share/uboot/rpi_3/u-boot.bin /boot/efi/rpi3-u-boot.bin releasever=$(rpm -q --qf '%{version}\n' fedora-release) rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-primary echo "Packages within this disk image" rpm -qa # Note that running rpm recreates the rpm db files which aren't needed or wanted rm -f /var/lib/rpm/__db* # remove random seed, the newly installed instance should make its own rm -f /var/lib/systemd/random-seed #dnf -y remove dracut-config-generic # Disable network service here, as doing it in the services line fails due to RHBZ #1369794 /sbin/chkconfig network off # Remove machine-id on pre generated images rm -f /etc/machine-id touch /etc/machine-id # setup systemd to boot to the right runlevel echo -n "Setting default runlevel to multiuser text mode" rm -f /etc/systemd/system/default.target ln -s /lib/systemd/systems/multi-user.target /etc/systemd/system/default.target echo . cp /tmp/anaconda.log /home/ %end