Installing to a custom location with buildworld/DESTDIR

Gary Newcombe gary at
Sat Sep 23 18:22:02 PDT 2006

On Sat, 23 Sep 2006 16:08:42 +0100
"Chris" <phatfish at> wrote:

> I have an encrypted disk setup where i want to install a fresh system using
> buildworld/buildkernel on my current install. I looked around and it seems
> that the bellow commands should do what i want. But I'm not sure if it is
> the best way to do it, or if the procedure is out of date (I'm running 6.1).

> cd /usr/src
> setenv DESTDIR /mnt/root
> make buildworld && make buildkernel KERNCONF=MYKERNEL
> cd /usr/src/etc; make distribution

Hi Chris,

That's all I do, but you'll need to install world and kernel too.


More information about the freebsd-questions mailing list