Re: How to change kernel version?



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. :-)

BTW: I am not in this list. So if you reply, please CC a copy to me. Thanks.

Changing the represented release name is not a generally wise idea. You
may also want to modify sys/sys/param.h, consult the FreeBSD Porters'
Handbook for more details.

If you just want to cheat uname(1) and/or sysctl(8), perhaps renaming
them to _uname and _sysctl and use some sort of _uname $@ | sed -e
s/`_uname -r`/6.1-RELEASE/g trick will do. This also applies to the
rc.d motd script, which uses uname(1) to determine the current FreeBSD
version. This trick is less intrusive, but have no effect if your
application read the version themselves, e.g. the build process of
python, etc.

Cheers,
--
Xin LI <delphij@xxxxxxxxxxx> http://www.delphij.net/
FreeBSD - The Power to Serve!

Attachment: signature.asc
Description: OpenPGP digital signature



Relevant Pages

  • FreeBSD Status report for Oct-Dec 2003
    ... Bluetooth stack for FreeBSD ... Not much to report. ... Bluetooth kernel modules appear to be stable. ... concerns and some src committers are willing to commit the patches. ...
    (freebsd-current)
  • FreeBSD Status Report for Oct-Dec 2003
    ... Bluetooth stack for FreeBSD ... Not much to report. ... Bluetooth kernel modules appear to be stable. ... concerns and some src committers are willing to commit the patches. ...
    (freebsd-hackers)
  • FreeBSD Status Report for Oct-Dec 2003
    ... Bluetooth stack for FreeBSD ... Not much to report. ... Bluetooth kernel modules appear to be stable. ... concerns and some src committers are willing to commit the patches. ...
    (freebsd-stable)
  • RE: FreeBSD 4.11 P13 Crash
    ... I do not want to jinx myself, but after back revving to FreeBSD 4.9 + ... think it is related to IPFilter in conjunction with 4 Intel nics and/or ... page fault while in kernel mode ... Okay this time my kernel was recompiled so there are no modules to ...
    (freebsd-hackers)
  • Re: 5.3 interrupt storm (atapicam) and I/O error
    ... attached you will find a copy of my custom kernel ... config which did work without any issue under FreeBSD ... The following hardware configuration *won't* cause ... * harddrive attached to IDE channel #1 ...
    (freebsd-questions)