Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 May 2012 08:42:22 +0200
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@FreeBSD.org
Subject:   Re: Building FreeBSD to install or update in two DESTDIRs
Message-ID:  <4FB0A94E.4050501@FreeBSD.org>
In-Reply-To: <22.B2.26116.B4130BF4@smtp01.insight.synacor.com>
References:  <22.B2.26116.B4130BF4@smtp01.insight.synacor.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig29EF5A830B85A1D75F964F62
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

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=3D/mnt (USB stick main
> partition).

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
tree.

I use this sort of construct frequently for updating jails, or when
managing boot environments.

> /usr/src/UPDATING doesn't say how to update for two DESTDIRs on the
> same build.

For each different DESTDIR, just repeat the installworld, installkernel,
check-old, delete-old* steps setting DESTDIR=3D/some/where
on the make command line.

The equivalent for mergemaster is to add '-D /some/where' to the
commandline.

	Cheers,

	Matthew

--=20
Dr Matthew J Seaman MA, D.Phil.
PGP: http://www.infracaninophile.co.uk/pgpkey



--------------enig29EF5A830B85A1D75F964F62
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.16 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk+wqU4ACgkQ8Mjk52CukIyZXgCffPoTI9l9Q7roftxsAxIf6tN+
kpsAn2NAjcQX1Ntuqo4F0tpEG4O7qvFu
=OYf9
-----END PGP SIGNATURE-----

--------------enig29EF5A830B85A1D75F964F62--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FB0A94E.4050501>