
CentOS 7 reached EOL on 30th June 2024[1] and RHEL 7 ended its maintenance support 2 phase[2] the same date. This change removes the ablity to build images derived from these base images. The centos and centos-minimal elements now default to a DIB_RELEASE value of 9-stream. [1] https://www.redhat.com/en/topics/linux/centos-linux-eol [2] https://www.redhat.com/en/technologies/linux-platforms/enterprise-linux/rhel-7-end-of-maintenance Change-Id: Ic50e08d9f84bbd319129be236d799eade5f40be8
38 lines
763 B
Plaintext
38 lines
763 B
Plaintext
# Pick which distros we need to force python2 and which to python3
|
|
if [ -z "${DIB_PYTHON_VERSION:-}" ]; then
|
|
case "$DISTRO_NAME" in
|
|
ubuntu)
|
|
if [ "$DIB_RELEASE" == "trusty" ]; then
|
|
DIB_PYTHON_VERSION=2
|
|
fi
|
|
;;
|
|
debian)
|
|
DIB_PYTHON_VERSION=2
|
|
;;
|
|
fedora)
|
|
if [ "$DIB_RELEASE" -le 22 ]; then
|
|
DIB_PYTHON_VERSION=2
|
|
fi
|
|
;;
|
|
rhel|centos)
|
|
DIB_PYTHON_VERSION=3
|
|
;;
|
|
opensuse)
|
|
if [ "${DIB_RELEASE:0:2}" == "42" ]; then
|
|
DIB_PYTHON_VERSION=2
|
|
fi
|
|
;;
|
|
esac
|
|
fi
|
|
|
|
if [ -z "${DIB_PYTHON_VERSION:-}" ]; then
|
|
DIB_PYTHON_VERSION=3
|
|
fi
|
|
|
|
export DIB_PYTHON_VERSION
|
|
export DIB_PYTHON=python${DIB_PYTHON_VERSION}
|
|
|
|
# Local variables:
|
|
# mode: sh
|
|
# End:
|