public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* change kernel name
@ 2004-02-03 23:40 Gaspar Bakos
  2004-02-04 10:06 ` Tomas Szepe
  2004-02-04 12:38 ` Richard B. Johnson
  0 siblings, 2 replies; 9+ messages in thread
From: Gaspar Bakos @ 2004-02-03 23:40 UTC (permalink / raw)
  To: linux-kernel

Hello,

I have the following question:
If I compile the kernel (2.4.*) and boot it in, then the kernel-release,
as shown by 'uname -r' will be the string that was in the EXTRAVERSION
string from the kernel Makefile.
Is there any way to change this 'identity' of the kernel after the
compilation?
Such as
changekernelname bzImage "newname"

For example I have bzImage.test1, which I copy to bzImage.test2 (and not
complete recompile the kernel with new EXTRAVERSION string), and when
test1 boots in I would like uname to say 2.4.23-test1, and when test2
boots in to say 2.4.23-test2. And in addition to this, of course I copy
/lib/modules/2.4.23-test1 to /lib/modules/2.4.23-test2.

Cheers
Gaspar

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: change kernel name
@ 2004-02-05 12:04 Nicholas Berry
  2004-02-05 16:39 ` Randy.Dunlap
  2004-02-17 13:16 ` Richard B. Johnson
  0 siblings, 2 replies; 9+ messages in thread
From: Nicholas Berry @ 2004-02-05 12:04 UTC (permalink / raw)
  To: root; +Cc: linux-kernel

Note the words 'after the compilation'.

Nik


>>> "Richard B. Johnson" <root@chaos.analogic.com> 02/04/04 07:38AM
>>>
On Tue, 3 Feb 2004, Gaspar Bakos wrote:

> Hello,
>
> I have the following question:
> If I compile the kernel (2.4.*) and boot it in, then the
kernel-release,
> as shown by 'uname -r' will be the string that was in the
EXTRAVERSION
> string from the kernel Makefile.
> Is there any way to change this 'identity' of the kernel after the
> compilation?
> Such as
> changekernelname bzImage "newname"

Put anything you want in the structure, system_utsname, in your copy
of
linux-nn-nn/init/version.c.

Cheers,
Dick Johnson
Penguin : Linux version 2.4.24 on an i686 machine (797.90 BogoMips).
            Note 96.31% of all statistics are fiction.


-
To unsubscribe from this list: send the line "unsubscribe linux-kernel"
in
the body of a message to majordomo@vger.kernel.org 
More majordomo info at  http://vger.kernel.org/majordomo-info.html 
Please read the FAQ at  http://www.tux.org/lkml/

^ permalink raw reply	[flat|nested] 9+ messages in thread
* Re: change kernel name
@ 2004-02-17 17:29 Nicholas Berry
  2004-02-17 17:39 ` Valdis.Kletnieks
  0 siblings, 1 reply; 9+ messages in thread
From: Nicholas Berry @ 2004-02-17 17:29 UTC (permalink / raw)
  To: root, Nicholas Berry; +Cc: linux-kernel

>>> "Richard B. Johnson" <root@chaos.analogic.com> 02/17/04 8:16 AM >>>
On Thu, 5 Feb 2004, Nicholas Berry wrote:

>> Note the words 'after the compilation'.
>>
>> Nik

>I read the first nasty-gram weeks ago. The attached >code
>will allow the kernel name to be changed (and other
>`uname` stuff) even when the kernel is running.

>Cheers,
>Dick Johnson
>Penguin : Linux version 2.4.24 on an i686 machine (797.90 BogoMips).
>            Note 96.31% of all statistics are fiction.

Note the words 'On Thu, 5 Feb 2004, Nicholas Berry wrote'

So why are you replying to the same 'nast-gram' weeks later?

Nik



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2004-02-17 17:39 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-03 23:40 change kernel name Gaspar Bakos
2004-02-04 10:06 ` Tomas Szepe
2004-02-04 12:38 ` Richard B. Johnson
  -- strict thread matches above, loose matches on Subject: below --
2004-02-05 12:04 Nicholas Berry
2004-02-05 16:39 ` Randy.Dunlap
2004-02-05 19:33   ` Richard B. Johnson
2004-02-17 13:16 ` Richard B. Johnson
2004-02-17 17:29 Nicholas Berry
2004-02-17 17:39 ` Valdis.Kletnieks

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox