Reputation: 309
I'm new to linux. I want to edit "This kernel requires an x86-64 CPU, but only detected an i686 CPU.Unable to boot - Please use a kernel appropriate for your CPU" from vmlinuz file(RHEL6.0) If editing this message is possible Can anyone suggest a way to modify message.
Upvotes: 2
Views: 2556
Reputation: 24812
you can grep the kernel sources for this string, and replace it with whatever you want, and then recompile your kernel. Usually replacing a string directly inside a binary (though it is technically possible), especially for the kernel is a very bad idea
Upvotes: 2
Reputation: 75599
The message is in /arch/.../boot/cpu.c in the linux kernel source. You can modify it, recompile the kernel and install the new kernel.
Upvotes: 2