From bd9099030d7c8a120c8acf41c1baaa679ee60574 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 7 Nov 2024 19:46:28 +0100 Subject: [PATCH] nanoBSD: disable entropy caching and early hostuuid --- tools/tools/nanobsd/defaults.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/tools/nanobsd/defaults.sh b/tools/tools/nanobsd/defaults.sh index 55314d7ef78..0aa4da85f33 100755 --- a/tools/tools/nanobsd/defaults.sh +++ b/tools/tools/nanobsd/defaults.sh @@ -575,8 +575,13 @@ setup_nanobsd_etc ( ) ( # 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? + # Disable boot-time setting of hostuuid, since / is read-only + echo "hostuuid_load=NO" >> boot/defaults/loader.conf + # Disable entropy files, since / is read-only - /var/db/entropy should be enough? + echo "entropy_cache_load=NO" >> boot/defaults/loader.conf + echo "entropy_boot_file=NO" >> etc/defaults/rc.conf echo "entropy_file=NO" >> etc/defaults/rc.conf + echo "entropy_dir=NO" >> etc/defaults/rc.conf [ -n "${NANO_NOPRIV_BUILD}" ] && chmod 444 etc/defaults/rc.conf -- 2.47.0