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

This commit is contained in:
Matthew Miller 2013-12-10 15:09:10 -05:00 committed by Kevin Fenzi
parent 5579ccc249
commit ce61f186bb
1 changed files with 2 additions and 0 deletions

View File

@ -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