From e999368d2cb49cf1670979ba467414e4c0f38286 Mon Sep 17 00:00:00 2001 From: yatinkarel Date: Mon, 29 Jun 2020 18:18:07 +0530 Subject: [PATCH] Disable all enabled epel repos in CentOS8 EPEL centos8 have different epel repos like epel, epel-modular, epel-playground etc, so we need to disable all not just epel. Also ensure other epel repositories in CentOS7 like epel-testing are also disabled. Related-Bug: #1885315 Change-Id: I02b3b83fa2047702d5f069d3ca1c9c0bcc1dab52 --- .../elements/epel/pre-install.d/05-rpm-epel-release | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/diskimage_builder/elements/epel/pre-install.d/05-rpm-epel-release b/diskimage_builder/elements/epel/pre-install.d/05-rpm-epel-release index 5ea9a6bb..4a268119 100755 --- a/diskimage_builder/elements/epel/pre-install.d/05-rpm-epel-release +++ b/diskimage_builder/elements/epel/pre-install.d/05-rpm-epel-release @@ -35,9 +35,9 @@ fi if [ ${DIB_EPEL_DISABLED:-0} -ne 0 ]; then if [[ ${YUM} == "dnf" ]]; then - dnf config-manager --set-disabled epel + dnf config-manager --set-disabled "epel*" else - yum-config-manager --disable epel + yum-config-manager --disable "epel*" fi fi