#version=DEVEL # System language lang en_US.UTF-8 repo --name="koji-override-0" --baseurl=http://fedora-riscv.tranquillity.se/repos-dist/f29/latest/riscv64/ # Use network installation url --mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?repo=rawhide&arch=$basearch" # System authorization information auth --useshadow --passalgo=sha512 # Firewall configuration firewall --enabled --service=mdns,ssh # Run the Setup Agent on first boot firstboot --reconfig # SELinux configuration selinux --enforcing # System services services --enabled="sshd,NetworkManager,avahi-daemon,rsyslog,chronyd,initial-setup" # System bootloader configuration bootloader --location=mbr # Disk partitioning information part /boot/fw --asprimary --fstype="vfat" --size=30 part /boot --asprimary --fstype="ext4" --size=512 part swap --asprimary --fstype="swap" --size=512 part / --asprimary --fstype="ext4" --size=2800 part /boot --fstype="ext4" --size=512 part swap --fstype="swap" --size=256 part / --fstype="ext4" --size=1256 %post # Setup Raspberry Pi firmware cp -Pr /usr/share/bcm283x-firmware/* /boot/fw/ cp -P /usr/share/uboot/rpi_2/u-boot.bin /boot/fw/rpi2-u-boot.bin cp -P /usr/share/uboot/rpi_3_32b/u-boot.bin /boot/fw/rpi3-u-boot.bin sed -i '/vfat/ d' /etc/fstab # work around for poor key import UI in PackageKit rm -f /var/lib/rpm/__db* releasever=$(rpm -q --qf '%{version}\n' fedora-release) basearch=armhfp rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch echo "Packages within this ARM 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 it's own rm -f /var/lib/systemd/random-seed # Because memory is scarce resource in most arm systems we are differing from the Fedora # default of having /tmp on tmpfs. echo "Disabling tmpfs for /tmp." systemctl mask tmp.mount 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 %end %post # 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/system/multi-user.target /etc/systemd/system/default.target echo . %end %packages @arm-tools @core @hardware-support NetworkManager-wifi bcm283x-firmware chrony dracut-config-generic extlinux-bootloader glibc-langpack-en initial-setup iw kernel rng-tools -@standard -dracut-config-rescue -generic-release* -glibc-all-langpacks -initial-setup-gui -iproute-tc -ipw* -iwl* -uboot-images-armv8 -usb_modeswitch -xkeyboard-config %end