Correct Way Of Kernel Patch?
Although new to linux, I already have done 2 kernel upgrades.What I have not tried is kernel patching.
After serarching and reading some posts in this and other sites I found out that there are 2 different methods in patching a kernel. One is to start in /usr/src directory and another is to start in the kernel directory .
I want to know which is the right or most advantageous method.
Another question,since I have 2 kernel sources(2.4.20 and 2.4.21) in my /usr/src directory does the patch know which to patch?
This is what I do to patch my kernel.
If the patch is gziped I gunzip it with
Then I cd to the kernel source
assuming linux is a link to the sorce I want to patch.
then I run
patch -Np1 -i <path to patch>/patch-name
Seems to always work for me so that's what I do. I'm sure there are several other ways of doing this too, It's just that we need other people to actually post a different way so we can all learn something, after all that's what we are here for is to teach/learn isn't it?
|All times are GMT -5. The time now is 12:05 AM.|