1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-22 18:50:08 +03:00

F #4089: Add haveged to ensure entropy (#4440)

This commit is contained in:
Christian González 2020-03-27 11:21:33 +01:00 committed by GitHub
parent 544c1ecfcd
commit f6f1b76539
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -164,11 +164,13 @@ RUN apt-get update && apt-get install -y \
systemd \
udev \
vim-tiny \
wget
wget \
haveged
RUN apt-get install -y /root/context.deb
RUN rm /root/context.deb
RUN apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN systemctl enable haveged
EOC
)
;;
@ -179,11 +181,13 @@ centos|redhat)
commands=$(cat <<EOC
COPY context.rpm /root/context.rpm
RUN yum update -y
RUN yum install -y epel-release \
initscripts \
e2fsprogs
RUN yum install -y epel-release
RUN yum install -y initscripts \
e2fsprogs \
haveged
RUN yum localinstall -y /root/context.rpm
RUN rm /root/context.rpm
RUN systemctl enable haveged
EOC
)
;;
@ -197,11 +201,13 @@ RUN apk add coreutils \
openrc \
udev \
openssh
RUN apk -U add haveged
RUN rc-update add sysfs boot && \
rc-update add devfs boot && \
rc-update add procfs boot && \
rc-update add hostname boot
rc-update add hostname boot && \
rc-update add haveged boot
RUN echo "ttyS0::respawn:/sbin/getty -L ttyS0 115200 vt100" >> /etc/inittab