From 6dff9d76985d853b2d0bd86377982b84bd71fabb Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 9 Mar 2024 21:05:05 +0100 Subject: [PATCH] nanoBSD: disable entropy files and early hostuuid due to read-only /boot --- 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 0557d2668bf..ede2f78b71d 100755 --- a/tools/tools/nanobsd/defaults.sh +++ b/tools/tools/nanobsd/defaults.sh @@ -564,7 +564,11 @@ 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 [ -n "${NANO_NOPRIV_BUILD}" ] && chmod 444 etc/defaults/rc.conf -- 2.44.0