When the Linux kernel compiles, modify the kernel version information

xiaoxiao2021-03-06  54

Environment: RedHat 7.3 Compiles your own custom kernel (note is not upgraded), the default is to define the version of the new kernel to 2.4.18-3custom, which is used to use some pre-compiled binary programs or drivers to prompt the kernel version. Not compatible, compare headache. Workaround: Modify file / usr / src / xxxx / makefile before compiling, in the fourth line of the file: extraversion = -3custom changes to extraversion = -3 After recompiling your kernel, it will be fine.

转载请注明原文地址:https://www.9cbs.com/read-116621.html

New Post(0)