From owner-freebsd-questions@FreeBSD.ORG Wed May 16 07:13:17 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 82C691065673 for ; Wed, 16 May 2012 07:13:17 +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 396478FC15 for ; Wed, 16 May 2012 07:13:16 +0000 (UTC) X_CMAE_Category: 0,0 Undefined,Undefined X-CNFS-Analysis: v=1.1 cv=aHSCumbQHUifGKLc3bawIpl4HjRCT32YeB0tjLLtu2Q= c=1 sm=0 a=F3fr6IO9xwAA:10 a=jLN7EqiLvroA:10 a=5O2ldFK7dLbfybxSBmMA:9 a=zJgV2U0bv_mjy4-en7oA:7 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:55950] helo=localhost) by mail.insightbb.com (envelope-from ) (ecelerity 2.2.2.40 r(29895/29896)) with ESMTP id DD/14-09467-68353BF4; Wed, 16 May 2012 03:13:10 -0400 Date: Wed, 16 May 2012 03:13:10 -0400 Message-ID: From: "Thomas Mueller" To: freebsd-questions@freebsd.org Cc: Polytropon 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: Wed, 16 May 2012 07:13:17 -0000 > > 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 different DESTDIRs. > > After rebooting single-user, do "mergemaster -p", > > then "mergemaster -p -D /mnt", and then "make installworld" and > > immediately following that, "make installworld DESTDIR=/mnt" ? > Refer to the commend header in /usr/src/Makefile for the > correct procedure. Without having it tested, the following > commands in SUM (after you have successfully installed the > new kernels) should work as intended: > # merpemaster -p > # make installworld > # make delete-old > # mergemaster > # merpemaster -p -D /mnt > # make installworld DESTDIR=/mnt > # make delete-old DESTDIR=/mnt > # mergemaster -D /mnt > # reboot > Also see the comment regarding "make delete-old-libs" to be > applied after reboot correspondingly. I assume your "merpemaster" is a typo for "mergemaster"? I would have done each step for main installation and then for USB stick (DESTDIR=/mnt) before going to the next step, or maybe that doesn't really matter? I think the second "mergemaster" was supposed to be done before "make delete-old", or maybe that doesn't really matter either? > > 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 kernel modules for GPT have been missing? Check /etc/src.conf > for any strange settings, see "man 3 src.conf" for details. You > can use this file to customize and "tweak" your builds. I think I must have all GPT modules there; I have no trouble accessing hard-disk partitions, and USB stick when partitioned GPT. I might want to prevent building ulpt module because of hplip and HP 1212nf MFP printer idiosyncrasies, though that may or may not make any difference. I could also prevent building other modules that would not be used. Tom