From ccd8c30b8864d21099aaa66f56b491c66d23797c Mon Sep 17 00:00:00 2001 From: Kevin Kofler Date: Mon, 7 Apr 2014 14:04:57 +0200 Subject: [PATCH] fedora-live-base.ks: do not hardcode fedora-release in %post Do not hardcode the fedora-release package name in the %post scriptlet (in the place that imports the Fedora RPM GPG key). Instead, use "--whatprovides system-release", which is strictly equivalent if fedora-release is used, but also works when the *-release package is named differently. This makes live easier for remixes, which have to replace fedora-release with generic-release or ${remixname}-release. They would otherwise have to edit fedora-live-base.ks. --- fedora-live-base.ks | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fedora-live-base.ks b/fedora-live-base.ks index 29be3c2..3e29713 100644 --- a/fedora-live-base.ks +++ b/fedora-live-base.ks @@ -280,7 +280,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) +releasever=$(rpm -q --qf '%{version}\n' --whatprovides system-release) basearch=$(uname -i) rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-$basearch echo "Packages within this LiveCD"