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 5ea9a6bb1..4a268119d 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