mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-29 05:27:41 +00:00
Add rngd
Tweak the config to use RDSEED or (fallback) RDRAND. Makes sure we have initial random seed in cases where there is no other random source if these are supported. The default config in Alpine currently disables these, which makes it pretty useless, as there is no motherboard rng support any more. Replaces #517 Fix #514 Fix #183 Signed-off-by: Justin Cormack <justin.cormack@docker.com>
This commit is contained in:
parent
94cf16b4e9
commit
468c8ba010
@ -1,4 +1,4 @@
|
||||
FROM mobylinux/alpine-base:1b684f4d3178e95649fbc3ecbca28834048fd3eb
|
||||
FROM mobylinux/alpine-base:e9f02e5109222e03566777f7041aee192a976a56
|
||||
|
||||
ENV ARCH=x86_64
|
||||
|
||||
@ -29,6 +29,7 @@ RUN \
|
||||
rc-update add dmesg sysinit && \
|
||||
rc-update add devfs sysinit && \
|
||||
rc-update add hwdrivers sysinit && \
|
||||
rc-update add rngd && \
|
||||
rc-update add sysfs && \
|
||||
rc-update add sysfsconf && \
|
||||
rc-update add fsck && \
|
||||
|
@ -4,7 +4,7 @@ COPY repositories /etc/apk/
|
||||
|
||||
RUN \
|
||||
apk update && apk upgrade && \
|
||||
apk add \
|
||||
apk add --no-cache \
|
||||
alpine-conf \
|
||||
bind-tools \
|
||||
busybox-initscripts \
|
||||
@ -22,10 +22,11 @@ RUN \
|
||||
openrc \
|
||||
openssh-client \
|
||||
openssl \
|
||||
rng-tools@edgecommunity \
|
||||
sfdisk \
|
||||
strace \
|
||||
sysklogd \
|
||||
syslinux \
|
||||
tar \
|
||||
xz \
|
||||
&& rm -rf /var/cache/apk/*
|
||||
&& true
|
||||
|
@ -1 +1,2 @@
|
||||
http://dl-cdn.alpinelinux.org/alpine/v3.4/main
|
||||
@edgecommunity http://dl-cdn.alpinelinux.org/alpine/edge/community
|
||||
|
1
alpine/etc/conf.d/rngd
Normal file
1
alpine/etc/conf.d/rngd
Normal file
@ -0,0 +1 @@
|
||||
RNGD_OPTS=""
|
Loading…
Reference in New Issue
Block a user