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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] 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 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=/some/where on the make command line. The equivalent for mergemaster is to add '-D /some/where' to the commandline. Cheers, Matthew -- Dr Matthew J Seaman MA, D.Phil. PGP: http://www.infracaninophile.co.uk/pgpkey [-- Attachment #2 --] -----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-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4FB0A94E.4050501>
