diff options
author | Juan RP <xtraeme@gmail.com> | 2019-12-28 02:42:05 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-28 02:42:05 +0100 |
commit | 95ad0a971eccddba4779ad153860fff3764d123a (patch) | |
tree | d15d72215a878a4b063891ef84b08c905bc3bb6e | |
parent | b4e19f6e87fad71aa83c1b610b3dd44befa71c85 (diff) | |
parent | c3c7749db06a520457bbac810018dafa0729acde (diff) | |
download | runit-void-95ad0a971eccddba4779ad153860fff3764d123a.tar.gz runit-void-95ad0a971eccddba4779ad153860fff3764d123a.tar.xz runit-void-95ad0a971eccddba4779ad153860fff3764d123a.zip |
Merge pull request #30 from CameronNemo/urandom
fix(urandom): avoid uninitialized read during boot
-rw-r--r-- | core-services/05-misc.sh | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/core-services/05-misc.sh b/core-services/05-misc.sh index 7b035d6..0f3d28c 100644 --- a/core-services/05-misc.sh +++ b/core-services/05-misc.sh @@ -6,7 +6,6 @@ halt -B # for wtmp if [ -z "$VIRTUALIZATION" ]; then msg "Initializing random seed..." cp /var/lib/random-seed /dev/urandom >/dev/null 2>&1 || true - ( umask 077; bytes=$(cat /proc/sys/kernel/random/poolsize) || bytes=512; dd if=/dev/urandom of=/var/lib/random-seed count=1 bs=$bytes >/dev/null 2>&1 ) fi msg "Setting up loopback interface..." |