about summary refs log tree commit diff
path: root/core-services
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2019-12-28 02:42:05 +0100
committerGitHub <noreply@github.com>2019-12-28 02:42:05 +0100
commit95ad0a971eccddba4779ad153860fff3764d123a (patch)
treed15d72215a878a4b063891ef84b08c905bc3bb6e /core-services
parentb4e19f6e87fad71aa83c1b610b3dd44befa71c85 (diff)
parentc3c7749db06a520457bbac810018dafa0729acde (diff)
downloadrunit-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
Diffstat (limited to 'core-services')
-rw-r--r--core-services/05-misc.sh1
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..."