From owner-freebsd-questions@FreeBSD.ORG Sat Jul 19 18:03:34 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 1D9F01065677 for ; Sat, 19 Jul 2008 18:03:34 +0000 (UTC) (envelope-from dnewman@networktest.com) Received: from mail.networktest.com (mail.networktest.com [216.240.60.134]) by mx1.freebsd.org (Postfix) with ESMTP id DE4DE8FC13 for ; Sat, 19 Jul 2008 18:03:33 +0000 (UTC) (envelope-from dnewman@networktest.com) Received: by mail.networktest.com (Postfix, from userid 1002) id A3FB778C7E; Sat, 19 Jul 2008 11:03:33 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on mail.networktest.com X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, MISSING_HEADERS autolearn=no version=3.2.5 Received: from levi.local (cpe-76-83-4-217.socal.res.rr.com [76.83.4.217]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.networktest.com (Postfix) with ESMTPSA id 7F76A78C7B for ; Sat, 19 Jul 2008 11:03:31 -0700 (PDT) Message-ID: <48822C72.1060703@networktest.com> Date: Sat, 19 Jul 2008 11:03:30 -0700 From: David Newman Organization: Network Test Inc. User-Agent: Thunderbird 2.0.0.14 (Macintosh/20080421) MIME-Version: 1.0 CC: freebsd-questions@freebsd.org References: <20080714233542.GA59789@root.ucsc.edu> <487BE866.2000309@gmail.com> <488188C2.5090705@gmail.com> <4882038F.6060805@networktest.com> <488208A0.8040004@gmail.com> <48821B43.6000104@infracaninophile.co.uk> In-Reply-To: <48821B43.6000104@infracaninophile.co.uk> X-Enigmail-Version: 0.95.6 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: freebsd-update says -p3, but i've got -p2 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: Sat, 19 Jul 2008 18:03:34 -0000 On 7/19/08 9:50 AM, Matthew Seaman wrote: > Manolis Kiagias wrote: > >> This is not a problem with freebsd-update. The kernel has not changed >> between -p2 and -p3, so freebsd-update will not get you an updated >> one. If you recompile the kernel afterwards, it will show -p3 because >> of the change in /usr/src/sys/conf/newvers.sh (this changes everytime >> freebsd-update gets new updates, regardless of whether the kernel is >> updated or not). So, simply by recompiling the kernel you will get >> the -p3 indication, though nothing much else in this case. > > I had a thought the other day that it should be possible to to provide > the system patch level as data within a very small KLD module. That way > freebsd-update could change the value without having to supply a whole > new kernel and without having to reboot. Something showing what's currently running would be a useful addition IMO. Yes, the user can grep /usr/src/sys/conf/newvers.sh to get the kernel patch level, but: 1. the user doesn't know if that patch level is currently installed and running; and 2. the user may not know version numbers for other pieces of code altered by freebsd-update. For example, someone else already pointed out that 'named -v' returns '9.4.2', the same version as before running freebsd-update. Port maintenance tools such as portmaster and portupgrade indicate which version they're upgrading to; a similar facility in freebsd-update would be nice-to-have too. thanks dn