From owner-freebsd-questions@FreeBSD.ORG Sun Jun 18 14:52:45 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE68F16A47A for ; Sun, 18 Jun 2006 14:52:45 +0000 (UTC) (envelope-from dinom@balstonresearch.com) Received: from rwcrmhc14.comcast.net (rwcrmhc14.comcast.net [216.148.227.154]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5233343D82 for ; Sun, 18 Jun 2006 14:52:35 +0000 (GMT) (envelope-from dinom@balstonresearch.com) Received: from [192.168.2.100] (c-68-36-86-171.hsd1.nj.comcast.net[68.36.86.171]) by comcast.net (rwcrmhc14) with ESMTP id <20060618145234m14000en5ee>; Sun, 18 Jun 2006 14:52:34 +0000 From: Constantino Michailidis To: freebsd-questions@freebsd.org Date: Sun, 18 Jun 2006 10:52:30 -0400 User-Agent: KMail/1.9.3 References: <20060618120041.84DBA16A47D@hub.freebsd.org> In-Reply-To: <20060618120041.84DBA16A47D@hub.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200606181052.30989.dinom@balstonresearch.com> Subject: Re: GUIDE step-by-step - FreeBSD-RELENG-upgrade + BUILDWORLD process, using CVSUP 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: Sun, 18 Jun 2006 14:52:45 -0000 On Sunday 18 June 2006 08:00, freebsd-questions-request@freebsd.org wrote: > Hanno Krusken wrote: > > Hi all, > > specially for the novice of you, please read carefully > > !! > > > > # make clean > > > > # make -j4 buildworld > > > > # make buildkernel KERNCONF=3DYOUR-KERNEL-FILE > > > > # make installkernel KERNCONF=3DYOUR-KERNEL-FILE > > > > # reboot > > > > Hanno Krusken > > =A0 > > make -j4 can cause many systems to fail > > The correct procedure is > > make buildworld > make kernel KERNCONF=3Dmykern > mergemaster -p > make installworld > mergemaster > > regards Jason M Thought I'd throw in my 2cents to the conversation. I have a cheat-sheet I= 've=20 created myself for this process. Generally, the procedure is as described = as=20 above. One issue is that the actual process can vary... there is more than= =20 one _correct_ procedure. That being said, it may help a newbie to have=20 _more_ detail than less. Thus, I'll include my cheat sheet here too. =20 Section 21.4 from the handbook should be the final authority ;-) Note, following the procedure isn't difficult at all... what _is_ difficult= is=20 answering the questions 'mergemaster' asks correctly. In reality, this=20 usually isn't too difficult either, but can be intimidating for less=20 experienced users. The general rule of thumb for mergemaster is.... answer 'i' (install tempor= ary=20 version) for any file that you don't remember editing yourself - this usual= ly=20 means press 'd' (delete) when prompted to merge files like /etc/hosts or=20 (possibly) /etc/printcap. On a typically configured machine, you are=20 instructing mergemaster to either install (95%) or delete (4%) the temporar= y=20 file it's prompting about; the other 1% of the time a 'real' merge is=20 necessary. Ultimately, you need to use your head a bit during mergemaster. Other than that, the only thing you need to understand is how to use cvsup.= =20 Enough already, here's my cheat-sheet: UPDATING FREEBSD cvsup standard-supfile #i'm tracking stable cd /usr/src cat UPDATING #glance at it for quirks make buildworld make buildkernel KERNCONF=3Dyour_filename make installkernel KERNCONF=3Dyour_filename shutdown now #optional; allows you to skip to next 'cd' command reboot #into single user mode fsck -p mount -u / mount -a -t ufs swapon -a adjkerntz -i #if cmos clock set to local time cd /usr/src #using mergemaster: usually just answer 'i' #for every file sans 'hosts', 'printcap' #and any other customized /etc files #use your head mergemaster -p #merges new stuff needed by installworld make installworld mergemaster #merges all new stuff: /etc /var/ usr reboot cd /usr/obj chflags -R noschg * #only if any files are immutable rm -rf * #saves disk space and #makes future updates easier but slower #THIS HAPPENS IN /usr/obj #LOL, BE CAREFUL TO INSURE THIS!!! =2D-=20 New systems generate new problems.