From owner-freebsd-questions@FreeBSD.ORG Tue May 15 00:48: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 7F0A11065670 for ; Tue, 15 May 2012 00:48:35 +0000 (UTC) (envelope-from mueller23@insightbb.com) Received: from mail.insightbb.com (smtp1.insight.synacor.com [208.47.185.23]) by mx1.freebsd.org (Postfix) with ESMTP id 305D58FC08 for ; Tue, 15 May 2012 00:48:34 +0000 (UTC) X_CMAE_Category: 0,0 Undefined,Undefined X-CNFS-Analysis: v=1.1 cv=35TcX+QIOQeVEFsxXAziJtlpzzKIYlbP0KOReIHpq8E= c=1 sm=0 a=F3fr6IO9xwAA:10 a=jLN7EqiLvroA:10 a=_ItHec519RBo7upyVw0A:9 a=Q/oqmR4JO1zR3vNQamCQeQ==:117 X-CM-Score: 0 X-Scanned-by: Cloudmark Authority Engine Authentication-Results: smtp02.insight.synacor.com smtp.mail=mueller23@insightbb.com; spf=softfail; sender-id=softfail Authentication-Results: smtp02.insight.synacor.com header.from=t.mueller1@insightbb.com; sender-id=softfail Received-SPF: softfail (smtp02.insight.synacor.com: transitional domain insightbb.com does not designate 74.134.26.53 as permitted sender) Received: from [74.134.26.53] ([74.134.26.53:36640] helo=localhost) by mail.insightbb.com (envelope-from ) (ecelerity 2.2.2.40 r(29895/29896)) with ESMTP id 83/5C-10195-F37A1BF4; Mon, 14 May 2012 20:45:52 -0400 Date: Mon, 14 May 2012 20:45:51 -0400 Message-ID: <83.5C.10195.F37A1BF4@smtp02.insight.synacor.com> From: "Thomas Mueller" To: freebsd-questions@freebsd.org Cc: Wojciech Puchar 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: Tue, 15 May 2012 00:48:35 -0000 > 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. I guess after the first installkernel, to default location, I should immediately make installkernel again, this time with DESTDIR=/mnt? Better to "make buildkernel" and "make installkernel" as two separate steps, rather than "make kernel"? After rebooting single-user, do "mergemaster -p", then "mergemaster -p -D /mnt", and then "make installworld" and immediately following that, "make installworld DESTDIR=/mnt" ? After that, I would do "mergemaster -i" followed by "mergemaster -i -D /mnt"? And then make delete-old followed by "DESTDIR=/mnt make delete-old"? Would I need to do "make distribution"? First time, "make installkernel DESTDIR=/mnt" only installed part. I installed to USB stick only after fully upgrading on main installation, finally copied /boot/kernel directory, and that USB stick is now bootable. So now I know how to make a USB stick bootable with GPT. Maybe some of the files were cleaned out? It is surely useful to have a rescue backup, considering the possibility of an update going awry on the main installation. Tom