Re: How to change kernel version?
- From: Julian Elischer <julian@xxxxxxxxxxxx>
- Date: Fri, 25 Aug 2006 11:59:46 -0700
Yuan, Jue wrote:
On Friday 25 August 2006 23:14, LI Xin wrote:
Yuan, Jue wrote:Thanks for this enlightment. Very helpful :-)
Hi all.Changing the represented release name is not a generally wise idea. You
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.
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.
ENVIRONMENT
An environment variable composed of the string UNAME_ followed by any
flag to the uname utility (except for -a) will allow the corresponding
data to be set to the contents of the environment variable.
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"
- References:
- How to change kernel version?
- From: Yuan, Jue
- Re: How to change kernel version?
- From: LI Xin
- Re: How to change kernel version?
- From: Yuan, Jue
- How to change kernel version?
- Prev by Date: Re: Problems of New Linuxulator I Have Known
- Next by Date: Re: suggested addition to 'date'
- Previous by thread: Re: How to change kernel version?
- Next by thread: Announcing: gvirstor
- Index(es):
Relevant Pages
- HOW TO RETREIVE DATA FROM KERNEL.
... I was wondering how to retreive data from the kernel if I wanna. ...
I want TCP ... (freebsd-hackers) - A question about the kernel and linux distribution
... I wanna build a 2.6.10 kernel for fun on a box which running RHEL5 ...
All the make and install procedures goes well and I got the ... a linux distribution
on which i can build various kernels and do some ... (linux.redhat) - Re: How to change kernel version?
... On Friday 25 August 2006 23:14, LI Xin wrote: ... Could I change the kernel
version tag manually? ... may also want to modify sys/sys/param.h, consult the FreeBSD
Porters' ... (freebsd-current) - Re: How to change kernel version?
... Could I change the kernel version tag manually? ... 7.0-CUREENT, but for some
reasons I wanna it be something like 6.1-RELEASE, ... which uses unameto determine
the current FreeBSD ... (freebsd-current) - Re: Whats the best browser for deb 2.2.18?
... > I dont think I wanna try to upgrade the kernel so I can get the latest
... > to upgrade the kernel. ... (Debian-User)