Browse Source

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
changes/35/738435/3
yatinkarel 5 days ago
parent
commit
e999368d2c
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      diskimage_builder/elements/epel/pre-install.d/05-rpm-epel-release

+ 2
- 2
diskimage_builder/elements/epel/pre-install.d/05-rpm-epel-release View File

@@ -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



Loading…
Cancel
Save