From owner-freebsd-questions Wed Feb 26 7:16:33 2003 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 94EA437B401 for ; Wed, 26 Feb 2003 07:16:30 -0800 (PST) Received: from catflap.home.slightlystrange.org (pc1-cmbg1-4-cust43.cmbg.cable.ntl.com [62.253.133.43]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A1F043FA3 for ; Wed, 26 Feb 2003 07:16:29 -0800 (PST) (envelope-from dan@slightlystrange.org) Received: from danielby by catflap.home.slightlystrange.org with local (Exim 3.36 #1) id 18o3IE-000Evf-00 for freebsd-questions@FreeBSD.ORG; Wed, 26 Feb 2003 15:16:22 +0000 Date: Wed, 26 Feb 2003 15:16:22 +0000 From: Daniel Bye To: "freebsd-questions@FreeBSD.ORG " Subject: Re: 4.7 Upgrade issue Message-ID: <20030226151622.GF55640@catflap.home.slightlystrange.org> Reply-To: dan@slightlystrange.org Mail-Followup-To: "freebsd-questions@FreeBSD.ORG " References: <20030226144352.5202D43FBD@mx1.FreeBSD.org> <20030226145024.GE55640@catflap.home.slightlystrange.org> <200302261659.53407.will@unfoldings.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302261659.53407.will@unfoldings.net> User-Agent: Mutt/1.4i X-Scanner: exiscan *18o3IE-000Evf-00*K0TMBm3.Bd2* (SlightlyStrange.org, Using NOD32 http://www.nod32.com) 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 Wed, Feb 26, 2003 at 04:59:53PM +0200, Willie Viljoen wrote: > On Wednesday 26 February 2003 16:50, someone, possibly Daniel Bye, typed: > > Yes, but how is that so different from installing a new world for an old > > kernel? > > The problem with a new world on an old kernel is that libraries in your > world may have changed with the upgrade. If a library that interfaces > directly with some feature in the kernel is changed, and is expecting the > change to be present in the kernel, you will almost certainly have trouble > with it. Agreed, but in this context, I think we are talking about running the disparate kernel and world, in either event, only as long as it takes to get both parts, the new kernel and the new world, installed. Surely, an old world on a new kernel will have the exact same problems (or the exact opposite problems?), in that newly-built programs such as ps and top may have been altered to take account of new kernel memory structures etc, which won't be available until the new kernel is installed and booted. Anyone who is up to using buildworld should have enough understanding to know that you have to build and install both parts for your system to work properly. > > When you have built a new kernel, you must reboot to start using it. > > After running make installworld with the new kernel, you have the new > > world installed as well. Your new kernel will only be running for a few > > minutes with the old world, until the new one is fully installed. > > That is exactly how it should be. > > The tried and trusted method, that works for me, and is the official method > listed in the UPDATING file: > > cd /usr/src/sys/i386/conf && vi YOURCONFIG > cd /usr/src/ && make buildworld kernel KERNCONF=YOURCONFIG > > The kernel target is a combination of buildkernel and installkernel. These > targets are built in order and rely on the previous target making it. Thus, > buildworld must succeed for buildkernel to begin, and after buildkernel has > worked, installkernel will run. Once this is completed, continue with: > > shutdown now > > You will now have dropped to single user mode, then, pick /bin/sh for your > shell (this is easier to use in single user than csh), and run: > > cd /usr/src > mergemaster -p > make installworld > mergemaster > reboot > > You will now have a properly functioning and fully upgraded system. But even then, there will be some disparity between the running kernel and the running world, no? This will only be resolved once all steps are complete, whichever particular sequence of events you follow. Dan -- Daniel Bye PGP Key: ftp://ftp.slightlystrange.org/pgpkey/dan.asc PGP Key fingerprint: 3D73 AF47 D448 C5CA 88B4 0DCF 849C 1C33 3C48 2CDC _ ASCII ribbon campaign ( ) - against HTML, vCards and X - proprietary attachments in e-mail / \ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message