From owner-freebsd-questions Mon Oct 15 14:33:10 2001 Delivered-To: freebsd-questions@freebsd.org Received: from mail-relay1.mirrorimage.net (mail-relay1.mirrorimage.net [209.58.140.11]) by hub.freebsd.org (Postfix) with ESMTP id 6D96337B407 for ; Mon, 15 Oct 2001 14:33:05 -0700 (PDT) Received: from leblanc.mirrorimage.net (leblanc.mirrorimage.net [209.192.210.146]) by mail-relay1.mirrorimage.net (8.9.3/8.9.3) with ESMTP id RAA16447 for ; Mon, 15 Oct 2001 17:33:04 -0400 Received: (from leblanc@localhost) by leblanc.mirrorimage.net (8.11.6/8.11.4) id f9FLXSi91558 for freebsd-questions@freebsd.org; Mon, 15 Oct 2001 17:33:28 -0400 (EDT) (envelope-from leblanc) Date: Mon, 15 Oct 2001 17:33:27 -0400 From: Louis LeBlanc To: freebsd-questions@freebsd.org Subject: Re: Upgrading to 4.4 Message-ID: <20011015173327.E4944@acadia.ne.mediaone.net> Reply-To: freebsd-questions@freebsd.org Mail-Followup-To: freebsd-questions@freebsd.org References: <20011015154852.D4944@acadia.ne.mediaone.net> <20011015222132.B36840@drex.staff.izr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20011015222132.B36840@drex.staff.izr.com> User-Agent: Mutt/1.3.22.1i X-bright-idea: Lets abolish HTML mail! 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 On 10/15/01 10:21 PM, Mark Drayton sat at the `puter and typed: > Louis LeBlanc (leblanc+freebsd@acadia.ne.mediaone.net) wrote: > > On 10/15/01 02:37 PM, legg@iastate.edu sat at the `puter and typed: > > > [upgrading using cvsup] > > > > You don't have to be a developer to use cvsup. Just cvsup to > > RELENG_4_4_0_RELEASE, then use the following: > > cd /usr/src > > make buildworld && make install > > > > Which will upgrade your userland. Once this is done, you should do > > this: > > > > mergemaster -ia > > > > which will merge config/startup/etc. files from the upgraded source to > > the installed versions. Then reboot. > > > > Next, you will want to rebuild your kernel. If you have a custom > > kernel, use that, otherwise use GENERIC. > > > > cd /usr/src make buildkernel KERNEL=GENERIC && make installkernel > > KERNEL=GENERIC > > > > Of course if you do use GENERIC, you can leave out the KERNEL > > parameters. Once this is done, reboot. > > > > Now, you are running 4.4 release. And not one line of code had to be > > touched :) > > Sorry to be finicky, but this is potentially a very dangerous way of > upgrading. IMHO the safest way is follows: > > make buildworld > make buildkernel > make installkernel > (reboot) > make installworld > mergemaster > (reboot) Actually, you really should installworld before building the kernel. I have never had trouble with this, and this follows the suggestions I have seen on this list in the last 2 or 3 months. That is how I upgraded from 4.3 to 4.4 with not a single hitch, hangup, or hesitation. > You should build a new kernel then reboot to ensure the new kernel > works. It's easy to recover from a broken kernel but not from a system > that won't work because the world is too new for the kernel (which could > happen if you install world before kernel). That is what my suggestion does. If you use the command: make buildworld && make installworld The second part will only happen if the first succeeds. You can continue that to: make buildworld && make installworld && reboot with the same effect. If the build fails, the install won't happen. If the install fails, there will be no reboot. You ever sit and watch the screen while buildworld went on? Talk about a cure for insomnia. > When you know the new kernel is okay you can get on with installing the > new world and mergemastering. And how would you tell if your kernel is ok other than a successful build and a reboot? Like I said, the '&&' says if that one succeeded, to this. Mergemaster may be required to boot the new kernel if there are some new config or default files. Better to do that before rebooting the kernel. Cheers, Lou -- Louis LeBlanc leblanc@acadia.ne.mediaone.net Fully Funded Hobbyist, KeySlapper Extrordinaire :) http://acadia.ne.mediaone.net ԿԬ Time is an illusion perpetrated by the manufacturers of space. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message