[Fedora-spins] [spin-kickstarts] import the gpg key since live and cloud is

Dennis Gilmore ausil at fedoraproject.org
Thu Dec 12 10:15:53 UTC 2013


commit c6112064c0dce552572ee26616e4c3f80fb5d438
Author: Dennis Gilmore <dennis at ausil.us>
Date:   Thu Dec 12 04:15:28 2013 -0600

    import the gpg key since live and cloud is

 fedora-arm-base.ks |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/fedora-arm-base.ks b/fedora-arm-base.ks
index 6428787..d7e1261 100644
--- a/fedora-arm-base.ks
+++ b/fedora-arm-base.ks
@@ -50,6 +50,16 @@ uboot-wandboard_quad
 
 %post
 
+# 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 LiveCD"
+rpm -qa
+# Note that running rpm recreates the rpm db files which aren't needed or wanted
+rm -f /var/lib/rpm/__db*
+
 # 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."


More information about the spins mailing list