summaryrefslogtreecommitdiffstats
path: root/usr.sbin/bsdinstall/scripts/entropy
diff options
context:
space:
mode:
Diffstat (limited to 'usr.sbin/bsdinstall/scripts/entropy')
-rwxr-xr-xusr.sbin/bsdinstall/scripts/entropy7
1 files changed, 6 insertions, 1 deletions
diff --git a/usr.sbin/bsdinstall/scripts/entropy b/usr.sbin/bsdinstall/scripts/entropy
index add6f30..d3938f1 100755
--- a/usr.sbin/bsdinstall/scripts/entropy
+++ b/usr.sbin/bsdinstall/scripts/entropy
@@ -26,4 +26,9 @@
#
# $FreeBSD$
-dd if=/dev/random of=$BSDINSTALL_CHROOT/entropy bs=4096 count=1
+umask 077
+for i in /entropy /boot/entropy; do
+ i="$BSDINSTALL_CHROOT/$i"
+ dd if=/dev/random of="$i" bs=4096 count=1
+ chown 0:0 "$i"
+done
OpenPOWER on IntegriCloud