diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-01-10 06:49:09 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2011-01-10 06:49:09 +0000 |
commit | f9a9ea40c99fcb5da7b70d3b00c05c387294f8d4 (patch) | |
tree | 613716c6c7db4fba097d9bece8188a41f9b4f066 /distrib/miniroot/install.sh | |
parent | 1a7c9558a28dea1703250bbce6a967f00dd2ca8c (diff) |
like in /etc/rc, talk to /dev/arandom as a single read or write.
in particular a single write will result in a single re-key event,
rather than 64 writes causing 64 re-keys -- wasting the kernel's time.
Diffstat (limited to 'distrib/miniroot/install.sh')
-rw-r--r-- | distrib/miniroot/install.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh index 48ebb31e79e..fd9aa3265f8 100644 --- a/distrib/miniroot/install.sh +++ b/distrib/miniroot/install.sh @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sh,v 1.215 2011/01/03 00:36:50 deraadt Exp $ +# $OpenBSD: install.sh,v 1.216 2011/01/10 06:49:08 deraadt Exp $ # $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $ # # Copyright (c) 1997-2009 Todd Miller, Theo de Raadt, Ken Westerback @@ -273,7 +273,7 @@ done) echo -n "done.\nGenerating initial host.random file..." /mnt/bin/dd if=/mnt/dev/arandom of=/mnt/var/db/host.random \ - bs=1024 count=64 >/dev/null 2>&1 + bs=65536 count=1 >/dev/null 2>&1 chmod 600 /mnt/var/db/host.random >/dev/null 2>&1 echo "done." |