Use the fedora-release-container package to get the release version

Signed-off-by: Clement Verna <cverna@tutanota.com>
This commit is contained in:
Clement Verna 2019-02-05 15:59:29 +01:00
parent 96e4175ad4
commit 776ba2064e

View File

@ -63,7 +63,7 @@ echo "%_install_langs $LANG" > /etc/rpm/macros.image-language-conf
# https://bugzilla.redhat.com/show_bug.cgi?id=1400682
echo "Import RPM GPG key"
releasever=$(rpm -q --qf '%{version}\n' fedora-release)
releasever=$(rpm -q --qf '%{version}\n' fedora-release-container)
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$releasever-primary
echo "# fstab intentionally empty for containers" > /etc/fstab