2013-05-28 06:44:45 +00:00
|
|
|
lang en_US.UTF-8
|
|
|
|
#keyboard us
|
2015-06-21 16:38:20 +00:00
|
|
|
auth --useshadow --passalgo=sha512
|
2013-05-28 06:44:45 +00:00
|
|
|
selinux --enforcing
|
|
|
|
firewall --enabled --service=mdns,ssh
|
|
|
|
|
2013-08-27 04:10:33 +00:00
|
|
|
# configure extlinux bootloader
|
2013-11-25 04:13:52 +00:00
|
|
|
bootloader extlinux
|
2013-08-27 04:10:33 +00:00
|
|
|
|
2016-09-21 14:23:18 +00:00
|
|
|
part /boot/fw --size=30 --fstype vfat --asprimary
|
2016-10-19 10:23:55 +00:00
|
|
|
part /boot --size=512 --fstype ext4 --asprimary
|
2016-09-21 14:23:18 +00:00
|
|
|
part swap --size=512 --fstype swap --asprimary
|
2017-06-26 18:59:13 +00:00
|
|
|
part / --size=3000 --fstype ext4 --asprimary
|
2014-05-06 17:31:06 +00:00
|
|
|
|
2013-06-01 02:57:20 +00:00
|
|
|
# make sure that initial-setup runs and lets us do all the configuration bits
|
|
|
|
firstboot --reconfig
|
|
|
|
|
2016-08-24 16:50:38 +00:00
|
|
|
services --enabled=sshd,NetworkManager,avahi-daemon,rsyslog,chronyd,initial-setup
|
2013-05-28 06:44:45 +00:00
|
|
|
|
2013-06-29 13:05:30 +00:00
|
|
|
%include fedora-repo.ks
|
2013-05-28 06:44:45 +00:00
|
|
|
|
|
|
|
%packages
|
|
|
|
@core
|
|
|
|
@standard
|
|
|
|
@hardware-support
|
|
|
|
|
|
|
|
kernel
|
2017-04-05 12:57:04 +00:00
|
|
|
# remove this in %post
|
2013-10-08 03:21:50 +00:00
|
|
|
dracut-config-generic
|
2017-04-05 12:58:24 +00:00
|
|
|
-dracut-config-rescue
|
2016-05-30 15:08:58 +00:00
|
|
|
# install tools needed to manage and boot arm systems
|
|
|
|
@arm-tools
|
2017-06-13 14:38:50 +00:00
|
|
|
-uboot-images-armv8
|
2016-09-07 14:31:36 +00:00
|
|
|
rng-tools
|
2013-05-28 06:44:45 +00:00
|
|
|
chrony
|
2013-08-27 04:10:33 +00:00
|
|
|
extlinux-bootloader
|
2016-09-21 14:23:18 +00:00
|
|
|
bcm283x-firmware
|
2013-05-28 06:44:45 +00:00
|
|
|
initial-setup
|
2014-01-08 22:23:23 +00:00
|
|
|
initial-setup-gui
|
2017-04-05 12:57:04 +00:00
|
|
|
-iwl*
|
|
|
|
-ipw*
|
|
|
|
-trousers-lib
|
2017-06-13 14:38:50 +00:00
|
|
|
-usb_modeswitch
|
|
|
|
-iproute-tc
|
2013-08-01 00:45:24 +00:00
|
|
|
#lets resize / on first boot
|
2014-07-16 09:28:48 +00:00
|
|
|
# dracut-modules-growroot
|
2013-06-08 13:58:01 +00:00
|
|
|
|
2016-02-29 20:21:30 +00:00
|
|
|
# make sure all the locales are available for inital0-setup and anaconda to work
|
|
|
|
glibc-all-langpacks
|
2016-08-15 20:58:01 +00:00
|
|
|
|
|
|
|
# workaround for 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
|
2013-05-28 06:44:45 +00:00
|
|
|
%end
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
2016-09-21 14:23:18 +00:00
|
|
|
# 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
|
|
|
|
|
2013-12-12 10:15:28 +00:00
|
|
|
# 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
|
2015-01-27 20:24:34 +00:00
|
|
|
echo "Packages within this ARM disk image"
|
2013-12-12 10:15:28 +00:00
|
|
|
rpm -qa
|
|
|
|
# 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 06:44:45 +00: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-17 02:58:04 +00:00
|
|
|
|
2016-08-24 16:50:38 +00:00
|
|
|
# Disable network service here, as doing it in the services line
|
|
|
|
# fails due to RHBZ #1369794
|
|
|
|
/sbin/chkconfig network off
|
|
|
|
|
2016-09-13 07:55:44 +00:00
|
|
|
# Remove machine-id on pre generated images
|
|
|
|
rm -f /etc/machine-id
|
2016-09-27 19:17:46 +00:00
|
|
|
touch /etc/machine-id
|
2016-09-13 07:55:44 +00:00
|
|
|
|
2013-05-28 06:44:45 +00:00
|
|
|
%end
|
|
|
|
|