From owner-freebsd-questions Sat Oct 13 18:10:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from guru.mired.org (okc-65-31-203-60.mmcable.com [65.31.203.60]) by hub.freebsd.org (Postfix) with SMTP id 89FEF37B407 for ; Sat, 13 Oct 2001 18:10:37 -0700 (PDT) Received: (qmail 10636 invoked by uid 100); 14 Oct 2001 01:10:30 -0000 From: Mike Meyer MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15304.58886.215474.233433@guru.mired.org> Date: Sat, 13 Oct 2001 20:10:30 -0500 To: "Doug Reynolds" Cc: questions@freebsd.org Subject: RE: cvsup In-Reply-To: <78234836@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 Doug Reynolds types: > On Fri, 12 Oct 2001 10:35:16 +0200, Patrick O'Reilly wrote: > > >OK - thanks to all for your support! > > > >I have gone ahead to the point of completing 'make buildworld', with the > >help of the handbook and yourselves. > > > >Next few steps (next week, as I have just been given a free golfing weekend > >and must run... :) are: > > > >make buildkernel > >make installkernel > >make installworld > > > >Or something along those lines? > > > >I must just check how to tell 'make installkernel' to use my modified config > >file (GENERIC with tweaks). Plug your config name in where I used "YOURCONF" below. You can also set KERNCONF in /etc/make.conf, to change the default kernel from GENERIC to YOURCONF. > I do: > > make buildworld > make installword > make buildkernel > make installkernel > mergemaster This is probably the most dangerous order you could do those things in that can work. The recommended - and safest - order is: make buildworld make kernel KERNCONF=YOURCONF # reboot to run the kernel you just built, preferably in single user mode make installworld mergemaster reboot again You have to do the buildworld before you can build a kernel, so buildworld has to happen first. "make kernel" is identical to "make buildkernel" followed by "make installkernel". FWIW, "make world" is also identical to "make buildworld" followed by "make installworld", After that, you reboot to insure that the new kernel will boot. If it fails for some reason, backing out the kernel is pretty easy, and you have your old, running system to rebuild things on. Running old binaries on a new kernel is safer than running new binaries on an old kernel. Kernels have to support a lot of old binaries; they aren't expected to have to support binaries that may need features that didn't exist when the kernel was built. SO you do the installworld in that mode, rather than trying to build the new kernel using new binaries running on the old one. Also, replacing daemons and the like while they are running can be hazardous to log files and other data structures the daemons keep on disk. Which is why it's safer to do the installworld in single user mode. It's sort of immaterial whether mergemaster is run in single or multi user mode, but you need to reboot afterwards to make sure all the changes that it installs are in place. So running it in single user mode after installing that way before rebooting is simple. 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