1
1
mirror of https://pagure.io/fedora-kickstarts.git synced 2024-11-04 23:54:21 +00:00
fedora-kickstarts/fedora-arm-base.ks
Dusty Mabe 0345ed81e0
python-classroom: add/delete some excludes for armhfp
When trying to build python classroom for armhfp we end up
in quite a dependency hell. Hunspell was the first issue
(fixed in the previous commit). Then there was all of this:

```
 Problem 1: conflicting requests
  - nothing provides libedataserver-1.2.so.23()(64bit) needed by gnome-shell-3.27.1-5.fc28.x86_64
 Problem 2: conflicting requests
  - nothing provides dleyna-renderer needed by gnome-photos-3.27.90-1.fc28.x86_64
 Problem 3: conflicting requests
  - nothing provides gnome-user-docs needed by gnome-getting-started-docs-3.26.2-2.fc28.noarch
 Problem 4: package NetworkManager-openconnect-gnome-1.2.4-9.fc28.x86_64 requires libopenconnect.so.5()(64bit), but none of the providers can be installed
  - conflicting requests
  - nothing provides libtspi.so.1()(64bit) needed by openconnect-7.08-5.fc28.x86_64
 Problem 5: package gnome-initial-setup-3.27.90-2.fc28.x86_64 requires gdm, but none of the providers can be installed
  - package gdm-1:3.27.4-4.fc28.i686 requires gnome-shell, but none of the providers can be installed
  - package gdm-1:3.27.4-4.fc28.x86_64 requires gnome-shell, but none of the providers can be installed
  - conflicting requests
  - nothing provides libedataserver-1.2.so.23()(64bit) needed by gnome-shell-3.27.1-5.fc28.x86_64
 Problem 6: package gnome-shell-extension-window-list-3.27.1-3.fc28.noarch requires gnome-shell-extension-common = 3.27.1-3.fc28, but none of the providers can be installed
  - package gnome-classic-session-3.27.1-3.fc28.noarch requires gnome-shell-extension-window-list = 3.27.1-3.fc28, but none of the providers can be installed
  - package gnome-shell-extension-common-3.27.1-3.fc28.noarch requires gnome-shell >= 3.27.1, but none of the providers can be installed
  - conflicting requests
  - nothing provides libedataserver-1.2.so.23()(64bit) needed by gnome-shell-3.27.1-5.fc28.x86_64
 Problem 7: conflicting requests
  - package gdm-1:3.27.4-4.fc28.i686 requires gnome-shell, but none of the providers can be installed
  - package gdm-1:3.27.4-4.fc28.x86_64 requires gnome-shell, but none of the providers can be installed
  - nothing provides libedataserver-1.2.so.23()(64bit) needed by gnome-shell-3.27.1-5.fc28.x86_64
```

Note: I used an x86_64 machine to do the dependency debugging.

So here is what I decided to do:

- remove `-evolution*` (evolution-data-server provides libedataserver-1.2.so.23()(64bit))
- remove `-trousers-lib` (trousers-lib provides libtspi.so.1()(64bit))
- add `-gnome-photos` since a lot of other gnome apps were excluded
- add `-gnome-getting-started-docs` since gnome-user-docs was excluded

Signed-off-by: Dusty Mabe <dusty@dustymabe.com>
2018-02-20 19:20:38 -05:00

90 lines
2.2 KiB
Plaintext

lang en_US.UTF-8
#keyboard us
auth --useshadow --passalgo=sha512
selinux --enforcing
firewall --enabled --service=mdns,ssh
# configure extlinux bootloader
bootloader extlinux
part /boot/fw --size=30 --fstype vfat --asprimary
part /boot --size=512 --fstype ext4 --asprimary
part swap --size=512 --fstype swap --asprimary
part / --size=2800 --fstype ext4 --asprimary
# make sure that initial-setup runs and lets us do all the configuration bits
firstboot --reconfig
services --enabled=sshd,NetworkManager,avahi-daemon,rsyslog,chronyd,initial-setup
%include fedora-repo.ks
%packages
@core
@standard
@hardware-support
kernel
# remove this in %post
dracut-config-generic
-dracut-config-rescue
# install tools needed to manage and boot arm systems
@arm-tools
-uboot-images-armv8
rng-tools
chrony
extlinux-bootloader
bcm283x-firmware
initial-setup
initial-setup-gui
-iwl*
-ipw*
-usb_modeswitch
-iproute-tc
#lets resize / on first boot
# dracut-modules-growroot
# make sure all the locales are available for inital0-setup and anaconda to work
glibc-all-langpacks
%end
%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