Browse Source

Merge "Install epel-release from URL"

changes/62/790362/2
Zuul 1 month ago
committed by Gerrit Code Review
parent
commit
c3243be696
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      diskimage_builder/elements/yum/pre-install.d/01-00-centos-python3

+ 3
- 1
diskimage_builder/elements/yum/pre-install.d/01-00-centos-python3 View File

@ -15,7 +15,9 @@ if [[ ${DISTRO_NAME} =~ (centos|rhel) && ${DIB_RELEASE} == 7 ]]; then
# "install this from EPEL". So we hack in an install of it here
# from EPEL. Nothing else should have installed EPEL at this
# early stage.
yum install -y python3 epel-release
yum install -y python3
# NOTE(dpawlik) The epel-release package is not available in RHEL.
yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum install -y python36-PyYAML
yum remove -y epel-release
elif [[ ${DISTRO_NAME} =~ (centos|rhel) && ${DIB_RELEASE} > 7 ]]; then


Loading…
Cancel
Save