From owner-freebsd-questions@FreeBSD.ORG Wed Dec 10 20:56:10 2014 Return-Path: Delivered-To: freebsd-questions@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 504BB6E2; Wed, 10 Dec 2014 20:56:10 +0000 (UTC) Received: from webmail.dweimer.net (24-240-198-187.static.stls.mo.charter.com [24.240.198.187]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "webmail2.dweimer.local", Issuer "webmail2.dweimer.local" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 13AF1189; Wed, 10 Dec 2014 20:56:09 +0000 (UTC) Received: from www.dweimer.net (webmail [192.168.5.2]) by webmail.dweimer.net (8.14.9/8.14.9) with ESMTP id sBAKu22k002285 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 10 Dec 2014 14:56:02 -0600 (CST) (envelope-from dweimer@dweimer.net) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: Wed, 10 Dec 2014 14:56:02 -0600 From: dweimer To: =?UTF-8?Q?Juan_Ram=C3=B3n_Molina_Menor?= Subject: Re: FreeBSD-SA-14:28 & FreeBSD-SA-14:27 Organization: dweimer.net Reply-To: dweimer@dweimer.net Mail-Reply-To: dweimer@dweimer.net In-Reply-To: References: <54889590.20307@club-internet.fr> Message-ID: <596c6ec4f4b0bcd549794259fb5509b8@dweimer.net> X-Sender: dweimer@dweimer.net User-Agent: Roundcube Webmail/1.1-beta Cc: freebsd-questions@freebsd.org, owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Dec 2014 20:56:10 -0000 On 12/10/2014 1:33 pm, dweimer wrote: > On 12/10/2014 12:48 pm, Juan Ramón Molina Menor wrote: >>>> Did something get missed in these updates to the releng branch, my >>>> source updates don't show the RELEASE-p1 in the BRANCH tag in the >>>> sys/conf/newver.sh >> >> It was forgotten: >> https://svnweb.freebsd.org/base?view=revision&revision=275684 >> >> Sorry for the noise! >> _______________________________________________ >> freebsd-questions@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-questions >> To unsubscribe, send any mail to >> "freebsd-questions-unsubscribe@freebsd.org" > > Good to know, it did through 9.2 & 10.0-RELEASE cycle, I wrote the > script when using 9.2, when I switched over to ZFS and using beadm to > manage boot environments. I wasn't sure I didn't pick a bad spot, or > a change in the process hadn't been intentionally made. I wanted more > input to see if I had found an error, or I was at fault. > > After this update it works correctly. > > root@freebsd:/usr/src # /scripts/create-beadm-name.sh > 10.1-RELEASE-p1-r275684-2014.12.10 > > Its a really simple script, probably could be made better by someone > who knows more about grep and awk than I do: > > REVISION=`cat /usr/src/sys/conf/newvers.sh | grep "^REVISION=" | awk > -F= '{print $2}' | awk -F\" '{print $2}'` > BRANCH=`cat /usr/src/sys/conf/newvers.sh | grep "^BRANCH=" | awk -F= > '{print $2}' | awk -F\" '{print $2}'` > SVNLASTCHANGE=`svnlite info /usr/src/ | grep "^Last Changed Rev:" | > awk '{print $4}'` > DATE=`date "+%Y.%m.%d"` > echo "${REVISION}-${BRANCH}-r${SVNLASTCHANGE}-${DATE}" > > makes creating a new Boot Environment under a standard naming > convention a breeze. > > beadm create `/scripts/create-beadm-name.sh` > > The SVN revision isn't to helpful usually on a release, but since I > use the same script when testing STABLE as well, I just left it in > there. On the production systems I generally do a new boot > environment even when updating applications so I may end up with > several dates on the same BRANCH with different dates so I can roll > back if an updated application fails. > > I am rebuilding world on my test system now, so I can found out if the > uname issue resolves as well, though I expect it will, then time to > start rolling through my production servers. uname reports correctly now: FreeBSD freebsd.dweimer.local 10.1-RELEASE-p1 FreeBSD 10.1-RELEASE-p1 #0 r275684: Wed Dec 10 14:44:37 CST 2014 dweimer@freebsd.dweimer.local:/jails/devel/ROOT/usr/obj/jails/devel/ROOT/usr/src/sys/GENERIC amd64 as well as freebsd-version: freebsd-version -uk 10.1-RELEASE-p1 10.1-RELEASE-p1 -- Thanks, Dean E. Weimer http://www.dweimer.net/