Fix haveged installation in CentOS7

When adding support for CentOS Stream 9 [1], I made dib to install haveged
in centos8 or centos8s only. This broke centos7 images.

This patch should get haveged installed in all centos releases != 9-stream and fix
centos7 one.

[1] https://review.opendev.org/c/openstack/project-config/+/811442

Change-Id: I5a33160c6272ee4e452b83599ca3ed552422c6d2
This commit is contained in:
Alfredo Moralejo 2021-11-05 11:03:30 +01:00
parent 7df74a82fa
commit 42fa5a7e73

View File

@ -20,7 +20,8 @@ if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
fi
set -e
if [[ "$DISTRO_NAME" == centos && "${DIB_RELEASE%-stream}" == "8" ]] ; then
if [[ "$DISTRO_NAME" == centos && ${DIB_RELEASE} != '9-stream' ]] ; then
# 9-stream we are just using the default rngd
# Note: $YUM exposed by centos environment, correct across releases
${YUM} -y install --enablerepo=epel haveged
fi