From owner-freebsd-questions@FreeBSD.ORG Tue Jun 1 12:54:26 2010 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 3C663106566B for ; Tue, 1 Jun 2010 12:54:26 +0000 (UTC) (envelope-from sonicy@otenet.gr) Received: from rosebud.otenet.gr (rosebud.otenet.gr [83.235.67.42]) by mx1.freebsd.org (Postfix) with ESMTP id A2F398FC08 for ; Tue, 1 Jun 2010 12:54:25 +0000 (UTC) Received: from pulstar.local (ppp-94-69-61-178.home.otenet.gr [94.69.61.178]) by rosebud.otenet.gr (8.13.8/8.13.8/Debian-3) with ESMTP id o51CsMtf002286; Tue, 1 Jun 2010 15:54:22 +0300 Message-ID: <4C0502FE.5090301@otenet.gr> Date: Tue, 01 Jun 2010 15:54:22 +0300 From: Manolis Kiagias User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: n dhert References: In-Reply-To: X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions@freebsd.org Subject: Re: uname -r and patchlevel 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: Tue, 01 Jun 2010 12:54:26 -0000 On 01/06/2010 2:33 ?.?., n dhert wrote: > Can somebody explain about the -p one sees in the output of the > uname -r ? > Under *exactly* what conditions the patch level changes to a new value > after you applied a freebsd-update install ? > If you are using the GENERIC kernel AND the kernel was updated as part of the freebsd-update process, the patch level is changed. You will need to reboot. If you are using the GENERIC kernel AND the kernel was not updated as part of the freebsd-update process, the patch level reported is unchanged if you are using a CUSTOM kernel, the reported patch level is not changed until you rebuild your kernel with the new sources as updated by freebsd-update. After rebuilding your kernel it always reflects the latest -p version, even if there were no actual kernel changes. The reported -p level is contained in this file: /usr/src/sys/conf/newvers.sh and this is always updated when an update comes through. If you rebuild your custom kernel (or even GENERIC) it will always report the value from this file.