Date: Sun, 18 Jun 2006 10:52:30 -0400 From: Constantino Michailidis <dinom@balstonresearch.com> To: freebsd-questions@freebsd.org Subject: Re: GUIDE step-by-step - FreeBSD-RELENG-upgrade + BUILDWORLD process, using CVSUP Message-ID: <200606181052.30989.dinom@balstonresearch.com> In-Reply-To: <20060618120041.84DBA16A47D@hub.freebsd.org> References: <20060618120041.84DBA16A47D@hub.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200606181052.30989.dinom>
