shraddha
shraddha

Reputation: 309

Editing vmlinuz file in linux

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

Answers (2)

zmo
zmo

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

Sjoerd
Sjoerd

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

Related Questions