From owner-freebsd-questions Fri Sep 28 11:40:14 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-94-248-46.mmcable.com [24.94.248.46]) by hub.freebsd.org (Postfix) with SMTP id 742C237B40F for ; Fri, 28 Sep 2001 11:40:07 -0700 (PDT) Received: (qmail 42129 invoked by uid 100); 28 Sep 2001 18:40:06 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15284.50182.74103.964293@guru.mired.org> Date: Fri, 28 Sep 2001 13:40:06 -0500 To: Mark Rowlands Cc: questions@freebsd.org, bsdneophyte@yahoo.com Subject: Re: compile kernel first or make world first? In-Reply-To: <28947546@toto.iv> X-Mailer: VM 6.90 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`;h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Mark Rowlands types: > On Tuesday 25 September 2001 8:38 am, Bsd Newbie wrote: > > make world and then kernel or..... > > #!/bin/sh > cvsup -g -L1 /root/sup 2>&1 > /usr/home/cs > cd /usr/src > > make buildworld 2>&1 > /usr/home/bw && \ > make buildkernel KERNCONF=MARK 2>&1 > /usr/home/bk && \ > make installkernel KERNCONF=MARK 2>&1 > /usr/home/ik && \ > make installworld 2>&1 > /usr/home/iw && \ > mergemaster > > gets me there You left out a critical step - rebooting - and can save a step. You have to reboot to start the new kernel, and the right time to do it is before installing the world - as it's a lot easier to back out the kernel than the world if the kernel doesn't boot. You can also use the "kernel" target to do the buildkernel and installkernel in a single step: make buildworld 2>&1 > /usr/home/bw && \ make kernel KERNCONF=MARK 2>&1 > /usr/home/bik Now reboot. It's actually best to be in single user mode for the install world and mergemaster, but it's generally not a problem. make installworld 2>&1 > /usr/home/iw && \ mergemaster If you weren't in single user mode, you'll need to reboot again to get the current version of the various daemons running. If you were in single user mode, you can just exit the single user shell and go multi-user, though that will screw up /var/run/dmesg.boot. http://www.mired.org/home/mwm/ Q: How do you make the gods laugh? A: Tell them your plans. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message