From owner-freebsd-questions@FreeBSD.ORG Thu Apr 10 17:58:51 2003 Return-Path: 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 BDB9537B401 for ; Thu, 10 Apr 2003 17:58:51 -0700 (PDT) Received: from smtp.acd.net (smtp.acd.net [207.179.102.146]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADE3243F3F for ; Thu, 10 Apr 2003 17:58:50 -0700 (PDT) (envelope-from taxman@ACD.NET) Received: from 207.179.85.17 ([207.179.85.17]) by smtp.acd.net with Microsoft SMTPSVC(5.0.2195.5329); Thu, 10 Apr 2003 20:59:44 -0400 From: taxman To: freebsd-questions@FreeBSD.org, Louis LeBlanc Date: Thu, 10 Apr 2003 21:02:30 -0400 User-Agent: KMail/1.5 References: <20030410205623.GB1060@keyslapper.org> In-Reply-To: <20030410205623.GB1060@keyslapper.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200304102102.30196.taxman@acd.net> X-OriginalArrivalTime: 11 Apr 2003 00:59:45.0180 (UTC) FILETIME=[A4694DC0:01C2FFC5] Subject: Re: problem with installkernel upgrading from 4.6.2 release to 5.0 release X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2003 00:58:52 -0000 On Thursday 10 April 2003 04:56 pm, Louis LeBlanc wrote: > Hey all. I'm trying to upgrade a system from RELENG_4_6_2_RELEASE to > RELENG_5_0_0_RELEASE. And I'm having a little trouble. I'm not sure that's even a supported upgrade path yet. There are plans for the 4.x-Release upgrade to 5.1 and 5.2 releases to be supported, but like i said, perhaps not to 5.0. 5.0 was never meant as a production release. All else was good till here: > make buildkernel seems to have gone fine > reboot to single user mode (using 'reboot now' or the method no point in rebooting till you have installed the new kernel. > in section 21.4.4 fo the handbook) > verify everything is mounted seems to have gone fine > cd /usr/src seems to have gone fine > make installkernel seems to have gone fine (but see below) Even then, upgrading accross major releases is a little tough so perhaps rebooting before you installworld won't help. It is possible that the new kernel won't work with the old world so you may not be able to check that it works anyway. > make installworld crashed. > This is the message: > > Checking to see if your booted kernel is fresh enough.. > /usr/obj/usr/src/bin/sh/sh -c 'echo "Testing installed kernel for new > sigaction(2) syscall"' Bad system call - core dumped > *** Error code 140 More or less telling you that you are not running the new kernel, which makes sense since you haven't booted from it at this point. > > ls -l /*kernel* > -r-xr-xr-x 1 root wheel 2628194 Mar 17 12:52 /kernel* > -r-xr-xr-x 1 root wheel 3352178 Apr 21 2001 /kernel.GENERIC* > -r-xr-xr-x 1 root wheel 2626485 Aug 29 2002 /kernel.old* > > The build was done once yesterday and twice today, and obviously the > kernel never installed. > > ls -l /boot > -r--r--r-- 1 root wheel 512 Aug 29 2002 boot0 > -r--r--r-- 1 root wheel 512 Aug 29 2002 boot1 > -r--r--r-- 1 root wheel 7680 Aug 29 2002 boot2 > -r-xr-xr-x 1 root wheel 1136 Aug 29 2002 cdboot* > drwxr-xr-x 2 root wheel 512 Aug 15 2002 defaults/ > -rw-r--r-- 1 root wheel 2113 Apr 9 17:15 device.hints > drwxr-xr-x 2 root wheel 5632 Apr 10 10:46 kernel/ > drwxr-xr-x 2 root wheel 5632 Apr 10 14:30 kernel.old/ > -r-xr-xr-x 1 root wheel 155648 Aug 29 2002 loader* > -r--r--r-- 1 root wheel 9237 Apr 21 2001 loader.4th > -rw-r--r-- 1 root wheel 67 Jul 2 2001 loader.conf > -r--r--r-- 1 root wheel 12012 Mar 15 2002 loader.help > -r-xr-xr-x 1 root wheel 155648 Aug 15 2002 loader.old* > -r--r--r-- 1 root wheel 338 Apr 21 2001 loader.rc > -r--r--r-- 1 root wheel 512 Aug 29 2002 mbr > -r-xr-xr-x 1 root wheel 157696 Aug 29 2002 pxeboot* > -r--r--r-- 1 root wheel 25121 Apr 21 2001 support.4th > > I don't know what some of this is, but the kernel directories seem to > have been installed here. > > I hope I included enough info for someone to see what I did wrong. If > not, just let me know. > > The funny thing is that this machine still boots to the 4.6.2 kernel > as if nothing ever happened. Kind of a relief, actually. I believe because the kernel is in slightly different location in 5.0 and since you're running the old world (because installworld failed), it is looking in the old place and finding the old kernel and booting fine. > Any ideas? Make installworld again and you should have 5.0 release upon reboot. You probably don't wan't 5.0 release. You may, but at least read: http://mired.org:8080/5.0-not-production.html Tim