Fix Yum repositories and GPG keys for CentOS 8.1

CentOS 8.1 split repositories and GPG keys out into subpackages. This
broke DIB support for CentOS 8.

7e41cef418
26a0d73ced

Change-Id: If3de6efa6074e059dc9fdd47c7bdc19d26d4d7f2
This commit is contained in:
Carlos Goncalves 2020-01-15 19:37:03 +01:00
parent 87e7f7b869
commit ae2be0b464

View File

@ -89,6 +89,11 @@ function _install_repos {
packages+="fedora-gpg-keys " packages+="fedora-gpg-keys "
fi fi
# CentOS 8.1 split repositories and GPG keys out into subpackages
if [[ ${DISTRO_NAME} = centos && ${DIB_RELEASE} -ge 8 ]]; then
packages+="centos-repos centos-gpg-keys "
fi
# By default, parent elements (fedora-minimal, centos-minimal) # By default, parent elements (fedora-minimal, centos-minimal)
# have a yum.repos.d directory in the element with a default repo; # have a yum.repos.d directory in the element with a default repo;
# this is copied to TMP_HOOK_PATH by the usual hook-copying # this is copied to TMP_HOOK_PATH by the usual hook-copying