Compare commits

..

3 Commits

Author SHA1 Message Date
Dennis Gilmore
9bfe625d34 import the gpg key since live and cloud is 2013-12-21 15:40:44 -06:00
Dennis Gilmore
de56fb5bf2 use uname -i as it gives the arch used as the basearch by yum uname -m is incorrect 2013-12-21 15:40:44 -06:00
Adam Williamson
4d772b386c correct path when copying GPL to live root (unversioned docdirs) 2013-12-21 15:40:44 -06:00
3 changed files with 13 additions and 3 deletions

View File

@@ -48,6 +48,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."

View File

@@ -197,7 +197,7 @@ truncate -c -s 0 /var/log/yum.log
echo "Import RPM GPG key"
releasever=$(rpm -q --qf '%{version}\n' fedora-release)
basearch=$(uname -m)
basearch=$(uname -i)
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
echo "Packages within this cloud image:"

View File

@@ -281,7 +281,7 @@ 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)
basearch=$(uname -i)
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch
echo "Packages within this LiveCD"
rpm -qa
@@ -303,7 +303,7 @@ rm -f /core*
%post --nochroot
cp $INSTALL_ROOT/usr/share/doc/*-release-*/GPL $LIVE_ROOT/GPL
cp $INSTALL_ROOT/usr/share/doc/*-release/GPL $LIVE_ROOT/GPL
# only works on x86, x86_64
if [ "$(uname -i)" = "i386" -o "$(uname -i)" = "x86_64" ]; then