From owner-freebsd-bugs@FreeBSD.ORG Wed Feb 11 22:00:13 2009 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B165B1065672 for ; Wed, 11 Feb 2009 22:00:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 6B1EE8FC12 for ; Wed, 11 Feb 2009 22:00:13 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.3/8.14.3) with ESMTP id n1BM0Ddp051340 for ; Wed, 11 Feb 2009 22:00:13 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.3/8.14.3/Submit) id n1BM0D36051339; Wed, 11 Feb 2009 22:00:13 GMT (envelope-from gnats) Resent-Date: Wed, 11 Feb 2009 22:00:13 GMT Resent-Message-Id: <200902112200.n1BM0D36051339@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Roy Badami Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 061781065670 for ; Wed, 11 Feb 2009 21:56:39 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id E869E8FC19 for ; Wed, 11 Feb 2009 21:56:38 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id n1BLucp4095934 for ; Wed, 11 Feb 2009 21:56:38 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id n1BLucoj095933; Wed, 11 Feb 2009 21:56:38 GMT (envelope-from nobody) Message-Id: <200902112156.n1BLucoj095933@www.freebsd.org> Date: Wed, 11 Feb 2009 21:56:38 GMT From: Roy Badami To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: misc/131598: freebsd-update doesn't interact well with custom kernels X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Feb 2009 22:00:15 -0000 >Number: 131598 >Category: misc >Synopsis: freebsd-update doesn't interact well with custom kernels >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Feb 11 22:00:13 UTC 2009 >Closed-Date: >Last-Modified: >Originator: Roy Badami >Release: 7.1-RC1 >Organization: >Environment: >Description: freebsd-update doesn't interact well with custom kernels. When you do freebsd-update -r upgrade running a custom kernel, you get told you must rebuild your kernel before proceeding with freebsd-update install. Unfortunately freebsd-update hasn't updated the kernel source at this point (and won't until it updates userland AFAICT). If you ignore the message (which is the only thing you can really do, since neither the message nor the handbook explain *how* you're supposed to rebuild the kernel at this stage), and you just cross your fingers and run freebsd-update install anyway, then the system claims to have updated the kernel - however it doesn't appear to have changed the kernel the system boots into (has it updated anything?). If you run "freebsd-update install" a second time, it updates the userland as expected. The /usr/src/sys tree is now up-to-date and you can *now* rebuild your kernel. This seems to be what other people do in this situation - updating userland before the kernel - but AIUI this isn't a supported way of moving between releases (although it's worked OK for me for 7.0-RELEASE -> 7.1-RC1 - 7.1-RELEASE and will probably work most of the time for minor releases) -roy >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: