[Fedora-spins] [spin-kickstarts] set releasever and basearch so we can find the right RPM GPG key to import

Matthew Miller mattdm at fedoraproject.org
Tue Dec 10 20:09:45 UTC 2013


commit 07ed9c93b228acb4ca564db2203646db10c06cc4
Author: Matthew Miller <mattdm at mattdm.org>
Date:   Tue Dec 10 15:09:10 2013 -0500

    set releasever and basearch so we can find the right RPM GPG key to import

 fedora-live-base.ks |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/fedora-live-base.ks b/fedora-live-base.ks
index a87bc62..35099d3 100644
--- a/fedora-live-base.ks
+++ b/fedora-live-base.ks
@@ -280,6 +280,8 @@ systemctl enable tmp.mount
 
 # work around for poor key import UI in PackageKit
 rm -f /var/lib/rpm/__db*
+releasever=$(rpm -q --qf '%{version}\n' fedora-release)
+basearch=$(uname -m)
 rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
 echo "Packages within this LiveCD"
 rpm -qa


More information about the spins mailing list