From owner-freebsd-questions@FreeBSD.ORG Mon May 14 06:42:35 2012 Return-Path: Delivered-To: freebsd-questions@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7E881106564A for ; Mon, 14 May 2012 06:42:35 +0000 (UTC) (envelope-from matthew@FreeBSD.org) Received: from smtp.infracaninophile.co.uk (smtp6.infracaninophile.co.uk [IPv6:2001:8b0:151:1:3cd3:cd67:fafa:3d78]) by mx1.freebsd.org (Postfix) with ESMTP id D9CA08FC08 for ; Mon, 14 May 2012 06:42:34 +0000 (UTC) Received: from seedlingblack-earthcouk.local (209.Red-88-21-46.staticIP.rima-tde.net [88.21.46.209]) (authenticated bits=0) by smtp.infracaninophile.co.uk (8.14.5/8.14.5) with ESMTP id q4E6gMA5062254 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Mon, 14 May 2012 07:42:30 +0100 (BST) (envelope-from matthew@FreeBSD.org) X-DKIM: OpenDKIM Filter v2.5.2 smtp.infracaninophile.co.uk q4E6gMA5062254 Authentication-Results: smtp.infracaninophile.co.uk/q4E6gMA5062254; dkim=none (no signature); dkim-adsp=none X-Authentication-Warning: lucid-nonsense.infracaninophile.co.uk: Host 209.Red-88-21-46.staticIP.rima-tde.net [88.21.46.209] claimed to be seedlingblack-earthcouk.local Message-ID: <4FB0A94E.4050501@FreeBSD.org> Date: Mon, 14 May 2012 08:42:22 +0200 From: Matthew Seaman User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org References: <22.B2.26116.B4130BF4@smtp01.insight.synacor.com> In-Reply-To: <22.B2.26116.B4130BF4@smtp01.insight.synacor.com> X-Enigmail-Version: 1.4.1 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig29EF5A830B85A1D75F964F62" X-Virus-Scanned: clamav-milter 0.97.4 at lucid-nonsense.infracaninophile.co.uk X-Virus-Status: Clean X-Spam-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,KHOP_DYNAMIC, RCVD_IN_SORBS_DUL,SPF_SOFTFAIL autolearn=no version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on lucid-nonsense.infracaninophile.co.uk Cc: Subject: Re: Building FreeBSD to install or update in two DESTDIRs X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2012 06:42:35 -0000 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--