Re: Building FreeBSD to install or update in two DESTDIRs

2012-05-17 Thread Thomas Mueller
from Polytropon: > In case you need to do more than one additional installation, > you should consider creating a tar archive of the fully installed > system and then use tar --unlink to the mounted target. If you > need to create many bootable systems from scratch, a script > performing the diskl

Re: Building FreeBSD to install or update in two DESTDIRs

2012-05-16 Thread Polytropon
On Wed, 16 May 2012 18:46:28 -0400, Thomas Mueller wrote: > > > The idea was to "make buildkernel" once and "make buildworld" once > > > and install to two different DESTDIRs. > > > I'm not sure I understand: The two install* targets ("make installkernel" > > and "make installworld") are only able

Re: Building FreeBSD to install or update in two DESTDIRs

2012-05-16 Thread Thomas Mueller
> > The idea was to "make buildkernel" once and "make buildworld" once > > and install to two different DESTDIRs. > I'm not sure I understand: The two install* targets ("make installkernel" > and "make installworld") are only able to install to _one_ location, > which is the _default_ location *or

Re: Building FreeBSD to install or update in two DESTDIRs

2012-05-16 Thread Polytropon
On Wed, 16 May 2012 03:13:10 -0400, Thomas Mueller wrote: > > > Better to "make buildkernel" and "make installkernel" as two > > > separate steps, rather than "make kernel"? > > > Yes. You only need to "make buildkernel" once, then "make installkernel" > > for both $DESTDIRs. > > The idea was to

Re: Building FreeBSD to install or update in two DESTDIRs

2012-05-16 Thread Thomas Mueller
> > Better to "make buildkernel" and "make installkernel" as two > > separate steps, rather than "make kernel"? > Yes. You only need to "make buildkernel" once, then "make installkernel" > for both $DESTDIRs. The idea was to "make buildkernel" once and "make buildworld" once and install to two d

Re: Building FreeBSD to install or update in two DESTDIRs

2012-05-15 Thread Polytropon
On Mon, 14 May 2012 20:45:51 -0400, Thomas Mueller wrote: > I guess after the first installkernel, to default location, > I should immediately make installkernel again, this time with > DESTDIR=/mnt? That should be possible, you only have to make sure that both "install targets" are fine with the

Re: Building FreeBSD to install or update in two DESTDIRs

2012-05-14 Thread Thomas Mueller
> What exactly went wrong? Setting DESTDIR is the correct way to do this > sort of thing. You only need to set it when running the installworld or > installkernel steps though -- there's nothing that gets compiled into > /usr/obj which prevents you from installing into a different than normal > t

Re: Building FreeBSD to install or update in two DESTDIRs

2012-05-14 Thread Wojciech Puchar
I would like to build FreeBSD to install in two places: regular hard drive and also on a USB stick, probably 8 GB. USB stick install would be for backup, in case something goes awry with a later update, then I have something to fall back on; could also install tools such as gdisk to use on har

Re: Building FreeBSD to install or update in two DESTDIRs

2012-05-13 Thread Matthew Seaman
On 14/05/2012 00:10, Thomas Mueller wrote: > I tried make installkernel and make installworld, but those didn't > fully work right the second time, with DESTDIR=/mnt (USB stick main > partition). What exactly went wrong? Setting DESTDIR is the correct way to do this sort of thing. You only need

Building FreeBSD to install or update in two DESTDIRs

2012-05-13 Thread Thomas Mueller
I would like to build FreeBSD to install in two places: regular hard drive and also on a USB stick, probably 8 GB. USB stick install would be for backup, in case something goes awry with a later update, then I have something to fall back on; could also install tools such as gdisk to use on hard