Browse Source

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?branch=c8
26a0d73ced?branch=c8

Change-Id: If3de6efa6074e059dc9fdd47c7bdc19d26d4d7f2
tags/2.33.0^0
Carlos Goncalves 1 month ago
parent
commit
ae2be0b464
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      diskimage_builder/elements/yum-minimal/root.d/08-yum-chroot

+ 5
- 0
diskimage_builder/elements/yum-minimal/root.d/08-yum-chroot View File

@@ -89,6 +89,11 @@ function _install_repos {
packages+="fedora-gpg-keys "
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)
# 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


Loading…
Cancel
Save