commit 8173ebec2eaf25caecdfde29587e054b7a91dfe4 Author: Colin Walters walters@verbum.org Date: Tue Nov 4 09:09:45 2014 -0500
cloud-atomic: Drop yum/rpm bits from %post
While it makes sense to import the GPG key, it has to be done as part of the treecompose, because it'll drop out of the rpmdb on the next upgrade.
For yum, it was run as part of the treecompose, not Anaconda, so there's already no history.
fedora-cloud-atomic.ks | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-) --- diff --git a/fedora-cloud-atomic.ks b/fedora-cloud-atomic.ks index 50ff215..b16f13a 100644 --- a/fedora-cloud-atomic.ks +++ b/fedora-cloud-atomic.ks @@ -104,16 +104,6 @@ echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot echo "Removing random-seed so it's not the same in every image." rm -f /var/lib/random-seed
-echo "Cleaning old yum repodata." -yum history new -yum clean all -truncate -c -s 0 /var/log/yum.log - -echo "Import RPM GPG key" -releasever=$(rpm -q --qf '%{version}\n' fedora-release) -basearch=$(uname -i) -rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch - echo "Packages within this cloud image:" echo "-----------------------------------------------------------------------" rpm -qa