From 2a19fa368cb31d9b574a6d46ed85167027bba3a9 Mon Sep 17 00:00:00 2001 From: Dmitry Tantsur Date: Mon, 29 Jun 2020 14:57:22 +0200 Subject: [PATCH] Disable EPEL on CentOS 8 by default It's currently broken and not really needed anyway. Depends-On: https://review.opendev.org/#/c/738435/ Change-Id: I767f6fc4e4177af5f7f93a0d4d3f8dcc578da2c4 --- .../environment.d/20-disable-epel.bash | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 dib/ironic-python-agent-ramdisk/environment.d/20-disable-epel.bash diff --git a/dib/ironic-python-agent-ramdisk/environment.d/20-disable-epel.bash b/dib/ironic-python-agent-ramdisk/environment.d/20-disable-epel.bash new file mode 100644 index 0000000..b9923ee --- /dev/null +++ b/dib/ironic-python-agent-ramdisk/environment.d/20-disable-epel.bash @@ -0,0 +1,4 @@ +if [[ "$DISTRO_NAME" == "centos" ]] && [[ "$DIB_RELEASE" == 8 ]]; then + # Disable EPEL unless enabled explicitly + export DIB_EPEL_DISABLED=${DIB_EPEL_DISABLED:-1} +fi