Do not rely on fedora-release

fedora-release package is not installed on e.g. fedora-arm-server
which later on results in GPG key to be not installed properly.
This commit is contained in:
Damian Wrobel 2019-07-14 16:47:46 +02:00
parent 9dbe324625
commit 19a7b3b113

View File

@ -53,7 +53,7 @@ cp -P /usr/share/uboot/rpi_3_32b/u-boot.bin /boot/efi/rpi3-u-boot.bin
# work around for poor key import UI in PackageKit
rm -f /var/lib/rpm/__db*
releasever=$(rpm -q --qf '%{version}\n' fedora-release)
releasever=$(rpm --eval '%{fedora}')
basearch=armhfp
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
echo "Packages within this ARM disk image"