Click to See Complete Forum and Search --> : patching my kernel
mandreko
12-28-2000, 03:33 PM
i'm trying to setup software raid, so i have to apply this patch to the kernel (as it says in the HOWTO))
well, i've rebuilt my kernel a couple times, but never have i had to apply a patch. When I gunzip the file, there's just this real long text file with stuff probably for the kernel. Where do i put this? and what do i do with it?
Muzzafarath
12-28-2000, 03:47 PM
Read the README file in /usr/src/linux. It'll tell you how to apply a patch.
PLBlaze
12-28-2000, 03:47 PM
It's rather simple to patch the kernel sources... http://www.linuxnewbie.org/ubb/smile.gif first if you have the patch with gz extention do this cd /usr/src && gzip -cd /path-to-patch/name-of-patch.gz | patch -p1,if you extracted the patch thru gzip then you get the text file which you can apply like this cd /usr/src/linux && patch -p1 < /path-to-file/name-of-file...Next you should see bunch of characters fly on the screen,make sure to check for failed hunks.
If you get any then proceed to compiling,if you do get faild hunks that means patch was not applied sucessfully and kernel compilation will most likely fail.Hope this helps.