From owner-freebsd-questions@FreeBSD.ORG Mon Sep 11 11:18:42 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9C2A316A412 for ; Mon, 11 Sep 2006 11:18:42 +0000 (UTC) (envelope-from spencer@io.com) Received: from smtp.prismnet.com (smtp.prismnet.com [209.198.128.91]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2C91143D5F for ; Mon, 11 Sep 2006 11:18:41 +0000 (GMT) (envelope-from spencer@io.com) Received: from fnord.io.com (spencer@fnord.io.com [209.198.128.89]) by smtp.prismnet.com (8.13.4/8.13.4) with ESMTP id k8BBId71044526 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Mon, 11 Sep 2006 06:18:39 -0500 (CDT) (envelope-from spencer@io.com) Received: (from spencer@localhost) by fnord.io.com (8.13.4/8.13.4/Submit) id k8BBIdGt046938; Mon, 11 Sep 2006 06:18:39 -0500 (CDT) (envelope-from spencer) Date: Mon, 11 Sep 2006 06:18:39 -0500 From: Spencer PriceNash To: freebsd-questions@freebsd.org Message-ID: <20060911111839.GA46328@io.com> References: <200608251822.42336.yuanjue02@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200608251822.42336.yuanjue02@gmail.com> User-Agent: Mutt/1.4.2.1i X-Virus-Scanned: ClamAV version 0.88.1, clamav-milter version 0.88.1 on smtp.prismnet.com X-Virus-Status: Clean X-Spam-Status: No, score=-4.4 required=7.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on smtp.prismnet.com Cc: "Yuan, Jue" Subject: kernel version changes release version. (was Re: How to change kernel version tag?) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 11 Sep 2006 11:18:42 -0000 On Fri, Aug 25, 2006 at 06:22:42PM +0800, Yuan, Jue wrote: > Hi all. > > Could I change the kernel version tag manually? say, I have a kernel which is > 7.0-CUREENT, but for some reasons I wanna it be something like 6.1-RELEASE, > while the kernel itself does't change from 7.0-CURRENT to 6.1-RELEASE. All I > want is the change of tag. For example, if this works, then when I > type "uname -a" in console, I would get "6.1-RELEASE ..." instead > of "7.0-CURRENT ...". > > I guess some config files in src/sys/ could take care of this. But I cannot > find it out. Anybody knows how to get this job done? > > Any ideas are really appreciated. :-) That seems an odd thing to do, but as it turns out, I somehow managed to do it. On Aug22, my old box had 5.3-RELEASE with a custom kernel. Here's something from a script that does backups every night, with the date as YYYYMMDDHHMMSS starting every line (hostname changed to avoid embarassment): 20060722234517:FreeBSD oldbox 5.3-RELEASE FreeBSD 5.3-RELEASE #0: Sat Nov 27 01:53:23 CST 2004 root@oldbox:/usr/obj/usr/src/sys/SPENCER1 i386 On Aug23 I upgraded to 5.4 (tried 6.1, but the old box hung repeatedly after any fsck): 20060723234514:FreeBSD oldbox 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May 8 10:21:06 UTC 2005 root@harlow.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386 I installed a custom kernel on Aug 29. The release version changed. Here's what the old box says it is now: 20060729234515:FreeBSD oldbox 5.3-RELEASE-p31 FreeBSD 5.3-RELEASE-p31 #0: Sat Jul 29 11:33:15 CDT 2006 root@oldbox:/usr/obj/usr/src/sys/kernel.2006072910 i386 I have no idea what I did to cause the change. Anyone have any idea what happened? I'm not so sure this is a great thing. It hasn't seemed to bother anything. cvsup/portupgrade didn't seem to mind. Neither did portsnap/portmanager. Haven't tried booting with the previous kernel to see what happens, as the box needs to stay up for a while. -- Spencer PriceNash spencer@io.com many other addresses http://www.io.com/~spencer many other sites