Jump to content


Photo
- - - - -

Is it possible to change uname -r output?


  • Please log in to reply
2 replies to this topic

#1 TheFunk

TheFunk

    SUP3R 31337

  • Members
  • 183 posts
  • Country:
  • Gender:Male

Posted 01 December 2012 - 05:14 PM

I recently compiled a shiny new 3.5.7-gentoo Linux kernel and was hoping to change the output of uname -r to something custom. I could always use an alias to make it seem like uname -r was returning something interesting like, "robot_heart_2.1", but I'd rather have the kernel name genuinely be customized. Does anyone know how to go about doing this?

#2 TheFunk

TheFunk

    SUP3R 31337

  • Members
  • 183 posts
  • Country:
  • Gender:Male

Posted 04 December 2012 - 02:32 PM

Reporting in.... I tried it. It was a bad idea. I recommend just setting an alias so that it looks like you have a weird kernel name. Don't mess with kernel headers, don't mess with kernel source, bad things happen, and I've learned my lesson.

#3 systems_glitch

systems_glitch

    Dangerous free thinker

  • Moderating Team
  • 1,623 posts
  • Gender:Male

Posted 04 December 2012 - 04:00 PM

You can at least easily modify the suffix for your specific build. It's a kernel config option (iirc it's even visible in `make menuconfig`)




BinRev is hosted by the great people at Lunarpages!