View Full Version : [Solved] Install to chroot directory
paradoxmonkey
October 3rd, 2010, 19:15
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.
graudeejs
October 3rd, 2010, 19:30
http://www.freebsd.org/doc/en/articles/nanobsd/index.html ?
Otherwise 256MB is probably not enough... 512 would bee ok
aragon
October 3rd, 2010, 20:36
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...
SirDice
October 4th, 2010, 07:24
Make use of DESTDIR when doing installkernel and/or installworld. Also tune the heck out of /etc/src.conf. See src.conf.
SIFE
November 1st, 2010, 10:29
How to remove chroot directory?
graudeejs
November 1st, 2010, 10:38
You mean exit chroot?
exit
SIFE
November 23rd, 2010, 21:01
No, I mean:
rm -R /path/to/chroot
graudeejs
November 23rd, 2010, 21:42
if you can't remove it, then run
chflags -R 0 /path/to/chroot
then remove it
SIFE
December 11th, 2010, 18:15
Reinstalling chroot also fix my problem Mr killasmurf86.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.