简体   繁体   中英

How to change Linux kernel name

How to change Linux kernel name.

uname -s

show "Linux", how to set "MYOS"?

I downloaded the source code for the Linux Kernel, but can not find where to change the kernel name and version. Help plz..

Change the UTS_SYSNAME definition, under

linux-x.xx.xx/include/linux/uts.h

and compile it, then uname will return whatever it was set to.

#define UTS_SYSNAME "Linux"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM