c043b9c2b6
Update the package maps. It also seems like matching just "9" will cover 9-stream and Rocky, which just uses DIB_RELEASE "9". Also fixup the 80-enable-haveged to skip on rocky. Change-Id: Ia352d217d00e10068a463b62f7d9aca72cb88a8c
33 lines
583 B
Bash
Executable File
33 lines
583 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
|
|
set -x
|
|
fi
|
|
set -eu
|
|
set -o pipefail
|
|
|
|
if [[ "$DISTRO_NAME" =~ ^(centos|rocky)$ && ${DIB_RELEASE} =~ '9' ]]; then
|
|
# 9/9-stream we are just using the default rngd
|
|
exit 0
|
|
fi
|
|
|
|
case "$DIB_INIT_SYSTEM" in
|
|
upstart)
|
|
# nothing to do
|
|
exit 0
|
|
;;
|
|
systemd)
|
|
systemctl enable haveged.service
|
|
;;
|
|
openrc)
|
|
rc-update add haveged default
|
|
;;
|
|
sysv)
|
|
exit 0
|
|
;;
|
|
*)
|
|
echo "Unsupported init system $DIB_INIT_SYSTEM"
|
|
exit 1
|
|
;;
|
|
esac
|