Page MenuHomeFreeBSD

Modify nanobsd/defaults.sh to reduce buildsize, buildtime and increase imgsize to fit.
Needs ReviewPublic

Authored by mr on Fri, Apr 18, 10:00 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Apr 20, 8:10 AM
Unknown Object (File)
Sat, Apr 19, 6:36 AM
Unknown Object (File)
Sat, Apr 19, 6:16 AM
Unknown Object (File)
Sat, Apr 19, 5:36 AM
Unknown Object (File)
Fri, Apr 18, 8:11 PM
Unknown Object (File)
Fri, Apr 18, 7:12 PM
Unknown Object (File)
Fri, Apr 18, 6:58 PM

Details

Reviewers
imp
Summary

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

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 63614
Build 60498: arc lint + arc unit

Event Timeline

mr requested review of this revision.Fri, Apr 18, 10:00 AM
mr created this revision.
This revision is now accepted and ready to land.Fri, Apr 18, 6:48 PM

What about also adding:

WITHOUT_LIB32=true
WITHOUT_KERNEL_SYMBOLS=true

It should fit with:

NANO_MEDIASIZE=4000000

Reference: https://github.com/freebsd/freebsd-src/pull/964

Additionally, if you really wan to keep the NANO_MEDIASIZE unchanged, you can also add WITHOUT_TOOLCHAIN=true.
For self reference, EC2 images are built with:

  • WITHOUT_DEBUG_FILES=YES
  • WITHOUT_KERNEL_SYMBOLS=YES
  • WITHOUT_LIB32=YES
  • WITHOUT_TESTS=YES
  • WITHOUT_LLDB=YES

But these options would only fit with 4000000, changing the last option, WITHOUT_LLDB, to the entire WITHOUT_TOOLCHAIN, would make it still fit 2000000. But I don't know where to draw the line when removing things by default for NanoBSD.

Followed the suggestions.
Compile tested and seems to fit...

Updating D49885: Modify nanobsd/defaults.sh to reduce buildsize, buildtime and

increase imgsize to fit.

This revision now requires review to proceed.Mon, Apr 21, 5:07 PM