View Full Version : [Solved] Install to chroot directory
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.
October 3rd, 2010, 19:30
Otherwise 256MB is probably not enough... 512 would bee ok
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...
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.
November 1st, 2010, 10:29
How to remove chroot directory?
November 1st, 2010, 10:38
You mean exit chroot?
November 23rd, 2010, 21:01
No, I mean:
rm -R /path/to/chroot
November 23rd, 2010, 21:42
if you can't remove it, then run
chflags -R 0 /path/to/chroot
then remove it
December 11th, 2010, 18:15
Reinstalling chroot also fix my problem Mr killasmurf86.
vBulletin® v3.8.7, Copyright ©2000-2013, vBulletin Solutions, Inc.