diskimage-builder/diskimage_builder/elements/centos7/environment.d/09-centos7-distro-name.bash
Carlos Goncalves 8226384cf0 Add CentOS 8 support
* Add "centos" element, a CentOS version-independent element. This is in
  line with the same work done for RHEL in Stein cycle.
* Deprecate the centos7 element. CentOS 7 support itself it not
  deprecated though. The new "centos" element provides the same support
  level as the "centos7" element.
* Add functional testing

The default CentOS version is 8. You can adjust it using the DIB_RELEASE
environment variable.

Change-Id: I373ba2296c4613765676e59aabd9c651345298d1
2020-02-19 10:44:56 +01:00

7 lines
194 B
Bash

# For backward compat (centos vs centos7)
export DIB_FLAVOR=${DIB_RELEASE:-GenericCloud}
export DIB_RELEASE=7
# Useful for elements that work with fedora (dnf) & centos
export YUM=${YUM:-yum}