From 9e144f3552eba1c7ecd4d2991c466b92ea1c5c45 Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 7 Dec 2015 04:02:42 +0000 Subject: [PATCH] Disable /entropy by default. /var/db/entropy should be enough. # This eliminates the warning message at boot, but more work may be # needed. --- tools/tools/nanobsd/defaults.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tools/tools/nanobsd/defaults.sh b/tools/tools/nanobsd/defaults.sh index ddbb849c603..dbd8fd68faa 100755 --- a/tools/tools/nanobsd/defaults.sh +++ b/tools/tools/nanobsd/defaults.sh @@ -489,9 +489,13 @@ setup_nanobsd_etc ( ) ( # create diskless marker file touch etc/diskless - # Make root filesystem R/O by default [ -n "${NANO_NOPRIV_BUILD}" ] && chmod 666 etc/defaults/rc.conf + + # Make root filesystem R/O by default echo "root_rw_mount=NO" >> etc/defaults/rc.conf + # Disable entropy file, since / is read-only /var/db/entropy should be enough? + echo "entropy_file=NO" >> etc/defaults/rc.conf + [ -n "${NANO_NOPRIV_BUILD}" ] && chmod 444 etc/defaults/rc.conf # save config file for scripts