Confirm haveged has been enabled on boot
Make sure that haveged has been started on boot for systemd. Change-Id: I00313c77ef6e57b3f2d347c5a333e665065b0c3e Signed-off-by: Paul Belanger <pabelanger@redhat.com>
This commit is contained in:
parent
f853982538
commit
ae825f98ff
29
nodepool/elements/infra-package-needs/post-install.d/80-enable-haveged
Executable file
29
nodepool/elements/infra-package-needs/post-install.d/80-enable-haveged
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
if [ "${DIB_DEBUG_TRACE:-0}" -gt 0 ]; then
|
||||
set -x
|
||||
fi
|
||||
set -eu
|
||||
set -o pipefail
|
||||
|
||||
case "$DIB_INIT_SYSTEM" in
|
||||
upstart)
|
||||
# nothing to do
|
||||
exit 0
|
||||
;;
|
||||
systemd)
|
||||
systemctl enable haveged.service
|
||||
;;
|
||||
openrc)
|
||||
# TODO(pabelanger): Make sure we support gentoo if we bring images
|
||||
# online for nodepool.o.o.
|
||||
exit 0
|
||||
;;
|
||||
sysv)
|
||||
exit 0
|
||||
;;
|
||||
*)
|
||||
echo "Unsupported init system $DIB_INIT_SYSTEM"
|
||||
exit 1
|
||||
;;
|
||||
esac
|
Loading…
Reference in New Issue
Block a user