kernel version changes release version. (was Re: How to change kernel version tag?)
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 MMDDHHMMSS 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 [EMAIL PROTECTED]:/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 [EMAIL PROTECTED]:/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 [EMAIL PROTECTED]:/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 [EMAIL PROTECTED]many other addresses http://www.io.com/~spencer many other sites ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kernel version changes release version. (was Re: How to change kernel version tag?)
/sys/conf/newvers.sh This file will determine the kernel version tag showed at booting time. Don't know if it has anything to do with your problem. HTH :-) On 9/11/06, Spencer PriceNash <[EMAIL PROTECTED]> wrote: 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 MMDDHHMMSS 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 [EMAIL PROTECTED]:/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 [EMAIL PROTECTED]:/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 [EMAIL PROTECTED]:/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. -- Best Regards Yuan, Jue @ http://www.yuanjue.net ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"
Re: kernel version changes release version. (was Re: How to change kernel version tag?)
On Mon, Sep 11, 2006 at 09:33:57PM +0800, Yuan, Jue wrote: > /sys/conf/newvers.sh > > This file will determine the kernel version tag showed at booting > time. Don't know if it has anything to do with your problem. > > HTH :-) > > On 9/11/06, Spencer PriceNash <[EMAIL PROTECTED]> wrote: > >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. > >>[...] > > > >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 MMDDHHMMSS 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 [EMAIL PROTECTED]:/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 > >[EMAIL PROTECTED]:/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 > >[EMAIL PROTECTED]:/usr/obj/usr/src/sys/kernel.2006072910 i386 > > > >I have no idea what I did to cause the change. > >[...] Heh...it wasn't too hard to figure out what I did. [EMAIL PROTECTED]:~[501]> grep REL standard-supfile *default release=cvs tag=RELENG_5_3 Aaargh. I upgraded the box and didn't change my src supfile. Fixed now; cvsup to get 5.4 source, new kernel build. Result: FreeBSD oldbox 5.4-RELEASE-p18 FreeBSD 5.4-RELEASE-p18 #0: Mon Sep 18 08:39:41 CDT 2006 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/kernel.2006Sep18 i386 -- Spencer PriceNash [EMAIL PROTECTED]many other addresses http://www.io.com/~spencer many other sites ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to "[EMAIL PROTECTED]"