2013-05-28 01:44:45 -05:00
|
|
|
#keyboard us
|
2019-12-06 15:29:57 +00:00
|
|
|
lang en_US.UTF-8
|
2013-05-28 01:44:45 -05:00
|
|
|
selinux --enforcing
|
|
|
|
firewall --enabled --service=mdns,ssh
|
|
|
|
|
2020-08-08 00:16:49 +02:00
|
|
|
bootloader --extlinux --location=mbr
|
2013-08-26 23:10:33 -05:00
|
|
|
|
2018-08-30 18:18:49 +01:00
|
|
|
part /boot/efi --size=80 --fstype vfat --asprimary
|
2016-10-19 11:23:55 +01:00
|
|
|
part /boot --size=512 --fstype ext4 --asprimary
|
2014-05-06 12:31:06 -05:00
|
|
|
|
2013-05-31 21:57:20 -05:00
|
|
|
# make sure that initial-setup runs and lets us do all the configuration bits
|
|
|
|
firstboot --reconfig
|
|
|
|
|
2020-07-08 19:13:34 -06:00
|
|
|
services --enabled=sshd,NetworkManager,avahi-daemon,chronyd,initial-setup
|
2013-05-28 01:44:45 -05:00
|
|
|
|
2013-06-29 08:05:30 -05:00
|
|
|
%include fedora-repo.ks
|
2013-05-28 01:44:45 -05:00
|
|
|
|
|
|
|
%packages
|
|
|
|
@core
|
|
|
|
@standard
|
|
|
|
@hardware-support
|
|
|
|
|
|
|
|
kernel
|
2017-04-05 13:57:04 +01:00
|
|
|
# remove this in %post
|
2013-10-07 22:21:50 -05:00
|
|
|
dracut-config-generic
|
2017-04-05 13:58:24 +01:00
|
|
|
-dracut-config-rescue
|
2016-05-30 10:08:58 -05:00
|
|
|
# install tools needed to manage and boot arm systems
|
|
|
|
@arm-tools
|
2017-08-16 18:20:35 +01:00
|
|
|
-uboot-images-armv8
|
2016-09-07 15:31:36 +01:00
|
|
|
rng-tools
|
2013-05-28 01:44:45 -05:00
|
|
|
chrony
|
2013-08-26 23:10:33 -05:00
|
|
|
extlinux-bootloader
|
2016-09-21 15:23:18 +01:00
|
|
|
bcm283x-firmware
|
2013-05-28 01:44:45 -05:00
|
|
|
initial-setup
|
2014-01-08 15:23:23 -07:00
|
|
|
initial-setup-gui
|
2017-04-05 13:57:04 +01:00
|
|
|
-iwl*
|
|
|
|
-ipw*
|
2017-08-16 18:20:35 +01:00
|
|
|
-usb_modeswitch
|
2013-07-31 19:45:24 -05:00
|
|
|
#lets resize / on first boot
|
2014-07-16 10:28:48 +01:00
|
|
|
# dracut-modules-growroot
|
2013-06-08 08:58:01 -05:00
|
|
|
|
2016-02-29 14:21:30 -06:00
|
|
|
# make sure all the locales are available for inital0-setup and anaconda to work
|
|
|
|
glibc-all-langpacks
|
2013-05-28 01:44:45 -05:00
|
|
|
%end
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
2016-09-21 15:23:18 +01:00
|
|
|
# Setup Raspberry Pi firmware
|
2018-08-30 18:18:49 +01:00
|
|
|
cp -P /usr/share/uboot/rpi_2/u-boot.bin /boot/efi/rpi2-u-boot.bin
|
|
|
|
cp -P /usr/share/uboot/rpi_3_32b/u-boot.bin /boot/efi/rpi3-u-boot.bin
|
2019-12-13 04:34:51 +00:00
|
|
|
cp -P /usr/share/uboot/rpi_4_32b/u-boot.bin /boot/efi/rpi4-u-boot.bin
|
2016-09-21 15:23:18 +01:00
|
|
|
|
2013-12-12 04:15:28 -06:00
|
|
|
# work around for poor key import UI in PackageKit
|
|
|
|
rm -f /var/lib/rpm/__db*
|
2019-07-14 16:47:46 +02:00
|
|
|
releasever=$(rpm --eval '%{fedora}')
|
2013-12-12 04:15:28 -06:00
|
|
|
basearch=armhfp
|
|
|
|
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
|
2015-01-27 14:24:34 -06:00
|
|
|
echo "Packages within this ARM disk image"
|
2020-06-17 13:14:08 +02:00
|
|
|
rpm -qa --qf '%{size}\t%{name}-%{version}-%{release}.%{arch}\n' |sort -rn
|
2013-12-12 04:15:28 -06:00
|
|
|
# Note that running rpm recreates the rpm db files which aren't needed or wanted
|
|
|
|
rm -f /var/lib/rpm/__db*
|
|
|
|
|
2016-03-05 17:44:00 +00:00
|
|
|
# remove random seed, the newly installed instance should make it's own
|
|
|
|
rm -f /var/lib/systemd/random-seed
|
|
|
|
|
2013-05-28 01:44:45 -05:00
|
|
|
# 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
|
|
|
|
|
2016-02-16 18:31:07 +00:00
|
|
|
dnf -y remove dracut-config-generic
|
2013-10-16 21:58:04 -05:00
|
|
|
|
2016-09-13 08:55:44 +01:00
|
|
|
# Remove machine-id on pre generated images
|
|
|
|
rm -f /etc/machine-id
|
2016-09-27 20:17:46 +01:00
|
|
|
touch /etc/machine-id
|
2016-09-13 08:55:44 +01:00
|
|
|
|
2013-05-28 01:44:45 -05:00
|
|
|
%end
|