git: 235071bd9816 - main - Modify nanobsd/defaults.sh to reduce buildsize, buildtime and increase imgsize to fit.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Wed, 13 Aug 2025 14:03:48 UTC
The branch main has been updated by mr:
URL: https://cgit.FreeBSD.org/src/commit/?id=235071bd981647a4adfdb500c77cd2603790958c
commit 235071bd981647a4adfdb500c77cd2603790958c
Author: Michael Reifenberger <mr@FreeBSD.org>
AuthorDate: 2025-04-18 09:53:46 +0000
Commit: Michael Reifenberger <mr@FreeBSD.org>
CommitDate: 2025-08-13 14:03:32 +0000
Modify nanobsd/defaults.sh to reduce buildsize, buildtime and
increase imgsize to fit.
Not building debug symbols and tests reduces _.w/ from 1465 to 503 MB.
Increasing the mediasize to 6000000 let the image be built.
Otherwise I get:
...
00:33:58 ## build code slice
00:33:58 ### log: /usr/obj/nanobsd.full/_.cs
/usr/obj/nanobsd.full/_.mnt: write failed, filesystem is full
Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D49885
---
tools/tools/nanobsd/defaults.sh | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/tools/tools/nanobsd/defaults.sh b/tools/tools/nanobsd/defaults.sh
index 65bace957f71..59ae8d92f4af 100755
--- a/tools/tools/nanobsd/defaults.sh
+++ b/tools/tools/nanobsd/defaults.sh
@@ -79,7 +79,12 @@ CONF_BUILD=' '
CONF_INSTALL=' '
# Options to put in make.conf during both build- & installworld.
-CONF_WORLD=' '
+CONF_WORLD='
+WITHOUT_DEBUG_FILES=true
+WITHOUT_LIB32=true
+WITHOUT_KERNEL_SYMBOLS=true
+WITHOUT_TESTS=true
+'
# Kernel config file to use
NANO_KERNEL=GENERIC
@@ -104,7 +109,7 @@ NANO_NEWFS="-b 4096 -f 512 -i 8192 -U"
NANO_DRIVE=ada0
# Target media size in 512 bytes sectors
-NANO_MEDIASIZE=2000000
+NANO_MEDIASIZE=4000000
# Number of code images on media (1 or 2)
NANO_IMAGES=2