From owner-freebsd-questions@FreeBSD.ORG Fri Jan 18 22:40:22 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6EC1716A417 for ; Fri, 18 Jan 2008 22:40:22 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from rosebud.otenet.gr (rosebud.otenet.gr [195.170.0.94]) by mx1.freebsd.org (Postfix) with ESMTP id E5ED713C469 for ; Fri, 18 Jan 2008 22:40:21 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from [192.168.0.1] (athedsl-318563.home.otenet.gr [85.72.100.1]) by rosebud.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id m0IMeJDw026038; Sat, 19 Jan 2008 00:40:19 +0200 Message-ID: <47912AE1.6000603@otenet.gr> Date: Sat, 19 Jan 2008 00:40:33 +0200 From: Manolis Kiagias User-Agent: Thunderbird 2.0.0.6 (X11/20071022) MIME-Version: 1.0 To: Zbigniew Szalbot References: <94136a2c0801181417w395f7532w4761fc76388ed60@mail.gmail.com> In-Reply-To: <94136a2c0801181417w395f7532w4761fc76388ed60@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-questions@freebsd.org Subject: Re: going from 6.2 to 6.3 and custom kernel 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: Fri, 18 Jan 2008 22:40:22 -0000 Zbigniew Szalbot wrote: > Hello, > > I thought I would try to upgrade from 6.2 to 6.2-Release now that it > is officially avilable. However, I do have custom kernel on my > machine. And when using advice written by Colin (thanks!) > http://www.daemonology.net/blog/2007-11-10-freebsd-minor-version-upgrade.html > I get this warning: > > WARNING: This system is running a "szalbot" kernel, which is not a > kernel configuration distributed as part of FreeBSD 6.2-RELEASE. > This kernel will not be updated: you MUST update the kernel manually > before running "freebsd-update.sh install". > > How do I update the kernel manually then? > > Do I have to fetch the latest source and then follow the advice given here? > > http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/kernelconfig-building.html > > Thanks! > > Zbigniew Szalbot > > It will not update your kernel, but if you do freebsd-update install you will get an updated GENERIC kernel in /boot/GENERIC. This is what I did: freebsd-update -r 6.3-RELEASE upgrade (got the warning you mentioned) freebsd-update install Got a message about installing kernel updates. Got a new generic kernel in /boot/GENERIC (check to see this exists!) Depending on whether you have console access to the machine or not: 1. If you don't have console access (you are doing this remotely), mv /boot/kernel /boot/mykernel.old and mv /boot/GENERIC /boot/kernel and reboot. This is because you can't (normally) interrupt the loader remotely - unless someone does it for you. Continue from step 3. 2. If you are in front of the machine, reboot. Stop the boot sequence when the boot loader comes up, and escape to loader prompt. Type: unload load /boot/GENERIC/kernel boot 3. You are now running a 6.3-RELEASE kernel, albeit a GENERIC one. Run freebsd-update install again to install the rest of the system. 4. Recompile your custom kernel the usual way, i.e. make buildkernel KERNCONF=MYKERNEL make installkernel KERNCONF=MYKERNEL reboot 5. You are done!