#version=DEVEL # System language lang en_US.UTF-8 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 repo --name="fedora-ac100" --baseurl=http://repos.fedorapeople.org/repos/kwizart/ac100/fedora-$releasever/$basearch/ # Use network installation url --mirrorlist="https://mirrors.fedoraproject.org/mirrorlist?repo=fedora-$releasever&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 --asprimary --fstype="ext4" --size=256 part swap --asprimary --fstype="swap" --size=256 part / --asprimary --fstype="ext4" --size=3300 %post # 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 # 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 # 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 # Most of the ARM X accelerated drivers need some level of CMA allocation sed -i 's/\(append .*\)/\1 cma=128MB rhgb quiet/' /boot/extlinux/extlinux.conf # Explicitly set graphical.target as default as this is how initial-setup detects which version to run ln -sf /lib/systemd/system/graphical.target /etc/systemd/system/default.target # Add fedora-ac100 repo echo > /etc/yum.repos.d/fedora-ac100.repo<