From owner-freebsd-stable@FreeBSD.ORG Sat Dec 13 18:32:05 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 0DFAE79D for ; Sat, 13 Dec 2014 18:32:05 +0000 (UTC) Received: from mail-ig0-x231.google.com (mail-ig0-x231.google.com [IPv6:2607:f8b0:4001:c05::231]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C48A17B7 for ; Sat, 13 Dec 2014 18:32:04 +0000 (UTC) Received: by mail-ig0-f177.google.com with SMTP id z20so3163978igj.4 for ; Sat, 13 Dec 2014 10:32:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=NqQf5JOoBEOUsCZfaddJo1CsMhCitD6Cc+5WCNww+Ts=; b=KI8iN+OdV47/tGVUpkGpYo1SeUNPT0IwOtL6nfznICxOlfEf26xclUPPig7iTs4ZxA Kckd6++RGjgzdsiUla8HvcDUkHQlqQT2iqiU/BPZEfn8iPWk34IHUBBpSw8j5bnZqjxd 9eeanm2DLelOVNUBAGnisPZaJx1BNcTqTdSm62kVfGTakU+WV/LBMb5rzyh1oPOGSIi7 +Ao97bIfFSRQcc919lprj2CPj0U6LsTykHIWbxt20vzbZ335BCO2hd011fzOErhV+VpT NmyVbYgFp+l+quSEINfsdkPezqUyB0cB4fSLGH0oTnEVCFmcva9mgEvXuJytqYcKkgfS AKSQ== MIME-Version: 1.0 X-Received: by 10.107.168.18 with SMTP id r18mr21549033ioe.76.1418495524236; Sat, 13 Dec 2014 10:32:04 -0800 (PST) Sender: kob6558@gmail.com Received: by 10.107.52.19 with HTTP; Sat, 13 Dec 2014 10:32:04 -0800 (PST) In-Reply-To: <1418474921.2156.20.camel@michaeleichorn.com> References: <201412120930.sBC9UUEF041702@mech-as221.men.bris.ac.uk> <7B7C7B31-B89F-4770-8DA1-CE7D0BD513EB@gromit.dlib.vt.edu> <1418474921.2156.20.camel@michaeleichorn.com> Date: Sat, 13 Dec 2014 10:32:04 -0800 X-Google-Sender-Auth: ayKax7kr7I8kS-DE-F2dHM9ZEm0 Message-ID: Subject: Re: wrong patchlevel after freebsd-update install? From: Kevin Oberman To: "Michael B. Eichorn" Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.18-1 Cc: FreeBSD-STABLE Mailing List X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Dec 2014 18:32:05 -0000 On Sat, Dec 13, 2014 at 4:48 AM, Michael B. Eichorn wrote: > On Fri, 2014-12-12 at 10:23 -0500, Paul Mather wrote: > > On Dec 12, 2014, at 4:30 AM, Anton Shterenlikht > wrote: > > > > > On 10.0-RELEASE-p12 amd64 I updated to p13 as: > > > > > > freebsd-update fetch > > > freebsd-update install > > > reboot > > > > > > However, uname still shows the old patchlevel: > > > > > > # uname -a > > > FreeBSD 001cc0f01814.anet.bris.ac.uk 10.0-RELEASE-p12 FreeBSD > 10.0-RELEASE-p12 #0: Tue Nov 4 05:07:17 UTC 2014 > root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > > > # > > > > > > But freebsd-update fetch suggests I'm already at p13: > > > > > > # freebsd-update fetch > > > Looking up update.FreeBSD.org mirrors... 5 mirrors found. > > > Fetching metadata signature for 10.0-RELEASE from > update5.freebsd.org... done. > > > Fetching metadata index... done. > > > Inspecting system... done. > > > Preparing to download files... done. > > > > > > No updates needed to update system to 10.0-RELEASE-p13. > > > # > > > > > > So has the update p12 -> p13 succeeded? > > > > What does "freebsd-version" report? If it returns 10.0-RELEASE-p13 then > your freebsd-update succeeded. > > > > > Please clarify > > > > It's my understanding that uname only gets updated when freebsd-update > updates the kernel. I think that's why freebsd-version was introduced. > > > > > > > > Thanks > > > > > > Anton > > > > Cheers, > > > > Paul. > > > > > > I have similar question about the 10.1-RELEASE-p1 update > > I ran the update as: > # freebsd-update fetch > # freebsd-update install > # ezjail-admin update -u > # reboot > > Yet when I run: > # freebsd-version -ku > 10.1-RELEASE > 10.1-RELEASE-p1 > > # uname -a > FreeBSD terra.michaeleichorn.com 10.1-RELEASE FreeBSD 10.1-RELEASE #0 > r274401: Tue Nov 11 21:02:49 UTC 2014 > root@releng1.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 > > Do I have a problem here or is this the expected behavior? > > I thought that 'freebsd-version -k' would report the new patchlevel even > if there was not a kernel update. > > For the record 'freebsd-update fetch' and 'freebsd-update install' > report no updates to install. > > Regards, > > Ike > This is normal and expected. FreeBSD, when built from sources as was always done before freebsd-update(8) came long, always built the kernel (buildkernel) and non-kernel or "user land" (buildworld) from one set of sources and, as a result, the kernel version as reported by uname(1) was all that was normally used. Along came binary updates (freebsd-update) andit became perfectly normal to install an update that only patched the kernel or the user space. As a result, security patches often resulted in updates that uname(1) did not change because the kernel was not updated. des@ created freebsd-version about a year ago to deal with this. The 10.0-p1 update was such a case where the kernel was not updated, so uname still reports the version as 10.1-RELEASE. For more information on this, see the freebsd-version man page. It goes into this in far more detail. -- R. Kevin Oberman, Network Engineer, Retired E-mail: rkoberman@gmail.com