diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-12-22 18:23:55 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2010-12-22 18:23:55 +0000 |
commit | f906ea8c566b1e30d60b373bc720ada78f7be01a (patch) | |
tree | 2214f3ba0e403ce22f411fc75e13f25863fe4f39 /distrib/miniroot/install.sh | |
parent | 402e285dd64cac6cee73728ef303a2fbfafb705d (diff) |
wow, we must reach into the chroot for /dev/arandom, meaning some of
this code has been busted for quite a while.
pointed out by miod
Diffstat (limited to 'distrib/miniroot/install.sh')
-rw-r--r-- | distrib/miniroot/install.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh index a6292da52a3..d0f79e83da6 100644 --- a/distrib/miniroot/install.sh +++ b/distrib/miniroot/install.sh @@ -1,5 +1,5 @@ #!/bin/ksh -# $OpenBSD: install.sh,v 1.211 2010/12/22 18:13:15 deraadt Exp $ +# $OpenBSD: install.sh,v 1.212 2010/12/22 18:23:54 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 @@ -272,11 +272,11 @@ for _f in fstab hostname* kbdtype my* ttys *.conf *.tail; do done ) # Feed the random pool some junk before we read from it -dmesg >/dev/arandom -cat $SERVERLISTALL >/dev/arandom 2>/dev/null +dmesg >/mnt/dev/arandom +cat $SERVERLISTALL >/mnt/dev/arandom 2>/dev/null echo -n "done.\nGenerating initial host.random file..." -/mnt/bin/dd if=/dev/arandom of=/mnt/var/db/host.random \ +/mnt/bin/dd if=/mnt/dev/arandom of=/mnt/var/db/host.random \ bs=1024 count=64 >/dev/null 2>&1 chmod 600 /mnt/var/db/host.random >/dev/null 2>&1 echo "done." |