diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-19 00:57:47 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1999-07-19 00:57:47 +0000 |
commit | 506989b9d0e7b6384f8a0f515c492f49f5f6e8cb (patch) | |
tree | acc1d350ef97ce0030c48f941df2b06b013f8bbb /distrib | |
parent | 36e1764c94c607adb7d9d00d9e1a7af79af065e5 (diff) |
create /var/db/host.random at install time
Diffstat (limited to 'distrib')
-rw-r--r-- | distrib/miniroot/install.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/distrib/miniroot/install.sh b/distrib/miniroot/install.sh index 1623afdfb2d..0230f76f97d 100644 --- a/distrib/miniroot/install.sh +++ b/distrib/miniroot/install.sh @@ -1,5 +1,5 @@ #!/bin/sh -# $OpenBSD: install.sh,v 1.53 1999/04/10 04:38:30 deraadt Exp $ +# $OpenBSD: install.sh,v 1.54 1999/07/19 00:57:46 deraadt Exp $ # $NetBSD: install.sh,v 1.5.2.8 1996/08/27 18:15:05 gwr Exp $ # # Copyright (c) 1997,1998 Todd Miller, Theo de Raadt @@ -608,6 +608,9 @@ w q" | ed /mnt/etc/master.passwd 2> /dev/null /mnt/usr/sbin/pwd_mkdb -p -d /mnt/etc /etc/master.passwd +dd if=/mnt/dev/urandom 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 + unmount_fs /tmp/fstab.shadow # Pat on the back. |