From owner-freebsd-stable@FreeBSD.ORG Thu Mar 1 21:20:26 2007 Return-Path: X-Original-To: freebsd-stable@freebsd.org Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id B373416A40A for ; Thu, 1 Mar 2007 21:20:26 +0000 (UTC) (envelope-from cperciva@freebsd.org) Received: from pd4mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.freebsd.org (Postfix) with ESMTP id 83A7213C4B7 for ; Thu, 1 Mar 2007 21:20:26 +0000 (UTC) (envelope-from cperciva@freebsd.org) Received: from pd3mr1so.prod.shaw.ca (pd3mr1so-qfe3.prod.shaw.ca [10.0.141.177]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with ESMTP id <0JE800IX9TXFSW00@l-daemon> for freebsd-stable@freebsd.org; Thu, 01 Mar 2007 14:20:03 -0700 (MST) Received: from pn2ml8so.prod.shaw.ca ([10.0.121.152]) by pd3mr1so.prod.shaw.ca (Sun Java System Messaging Server 6.2-7.05 (built Sep 5 2006)) with ESMTP id <0JE800B55TXF41A1@pd3mr1so.prod.shaw.ca> for freebsd-stable@freebsd.org; Thu, 01 Mar 2007 14:20:03 -0700 (MST) Received: from hexahedron.daemonology.net ([24.82.18.31]) by l-daemon (Sun ONE Messaging Server 6.0 HotFix 1.01 (built Mar 15 2004)) with SMTP id <0JE800C87TX60YO0@l-daemon> for freebsd-stable@freebsd.org; Thu, 01 Mar 2007 14:19:55 -0700 (MST) Received: (qmail 1276 invoked from network); Thu, 01 Mar 2007 21:19:37 +0000 Received: from unknown (HELO ?127.0.0.1?) (127.0.0.1) by localhost with SMTP; Thu, 01 Mar 2007 21:19:37 +0000 Date: Thu, 01 Mar 2007 13:19:36 -0800 From: Colin Percival In-reply-to: <20070301105023.GA62748@mail.crypta.net> To: Andy Hilker Message-id: <45E74368.4010603@freebsd.org> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7bit X-Enigmail-Version: 0.94.0.0 References: <20070228221612.GA14358@mail.crypta.net> <20070301105023.GA62748@mail.crypta.net> User-Agent: Thunderbird 1.5.0.9 (X11/20061227) Cc: freebsd-hackers@freebsd.org, FreeBSD Stable Subject: Re: freebsd-update ignores /boot/kernel/kernel sometimes!? X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Mar 2007 21:20:26 -0000 Andy Hilker wrote: >> Somehow freebsd-update find /boot/kernel/kernel on some servers and >> patches it and on others not. > > Additional info: > it seems that all machines where it does not work, have an SMP-GENERIC > (i386) installed. There's a bug in how FreeBSD Update handles /boot/kernel. Basically, it's supposed to figure out if you're running a GENERIC or SMP kernel, and get the appropriate updates based on that; but I incorrectly assumed that the SMP kernel would identify itself as "SMP". Instead, the i386 SMP kernel identifies itself as "SMP-GENERIC", while the amd64 SMP kernel identifies itself as "GENERIC", with the result that (a) On FreeBSD 6.2 i386 systems running an SMP kernel from /boot/kernel, the kernel will not be updated, and (b) On FreeBSD 6.2 amd64 systems running an SMP kernel from /boot/kernel, the kernel will be replaced with a GENERIC (non-SMP) kernel. I'm working on a patch for this and will be talking to re@ about having an Errata Notice sent out about this. Colin Percival