svn commit: r291916 - head/tools/tools/nanobsd
Warner Losh
imp at FreeBSD.org
Mon Dec 7 04:02:44 UTC 2015
Author: imp
Date: Mon Dec 7 04:02:42 2015
New Revision: 291916
URL: https://svnweb.freebsd.org/changeset/base/291916
Log:
Disable /entropy by default. /var/db/entropy should be enough.
# This eliminates the warning message at boot, but more work may be
# needed.
Modified:
head/tools/tools/nanobsd/defaults.sh (contents, props changed)
Modified: head/tools/tools/nanobsd/defaults.sh
==============================================================================
--- head/tools/tools/nanobsd/defaults.sh Mon Dec 7 04:02:34 2015 (r291915)
+++ head/tools/tools/nanobsd/defaults.sh Mon Dec 7 04:02:42 2015 (r291916)
@@ -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
More information about the svn-src-head
mailing list