Install to chroot directory

What's the best and easiest way to install a minimal (< 100MB) freebsd FreeBSD system to a directory? I would then be able to chroot into the minimal system and install all needed packages.

I'm going to run Freebsd FreeBSD on an small flash disk (256MB) so I need it to be small.
 
It's funny that I'm working on exactly this right now. I need to build custom packages for multiple systems and a mix of amd64 and i386 architectures.

NanoBSD was my starting point too, but I've modified it hugely already so that it sets up and maintains a ports skeleton, tracks run dependencies, and builds packages automatically. Busy changing it to use portmaster for a lot of work now.

Sorry, nothing useful to show yet...
 
Make use of DESTDIR when doing installkernel and/or installworld. Also tune the heck out of /etc/src.conf. See src.conf(5).
 
Back
Top