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]
@@ -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
