Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 12-02-2005, 07:23 PM   #1
james penguin
LQ Newbie
Registered: Nov 2005
Posts: 14

Rep: Reputation: 0
slackware patch kernel

Ok, so I need to patch my 2.4.29 slackware kernel to 2.4.32. Ok so normally I'd think I could just get the kernel patches from, but when ever I try
gzip2 -dc patch-2.4.xx | patch -p1 --dry-run
But it's saying it can't find the files to patch, and asks me for an alternate dir.

So is it because the slack kernel is funky? Or do I need special slack patches?
Old 12-02-2005, 07:50 PM   #2
Registered: Feb 2004
Distribution: Slackware 10.2
Posts: 669

Rep: Reputation: 32
You need to get all the patches from 2.4.30 upto 2.4.32 and apply them all or better yet if you have broadband just download the full 2.4.32 source.
Old 12-02-2005, 08:20 PM   #3
james penguin
LQ Newbie
Registered: Nov 2005
Posts: 14

Original Poster
Rep: Reputation: 0
yeah I know I have to go one patch at a time starting at 2.4.30, but I'm getting that error. Do I need to rename my linux-2.4.29 folder?
Old 12-02-2005, 08:38 PM   #4
Registered: Sep 2002
Location: Novi Sad, Vojvodina
Distribution: Slackware, FreeBSD
Posts: 386

Rep: Reputation: 32
Try patch -p0
Old 12-02-2005, 09:42 PM   #5
james penguin
LQ Newbie
Registered: Nov 2005
Posts: 14

Original Poster
Rep: Reputation: 0
yay it works thanks a lot. So what exactly is the deal with p0 and p1?
Old 12-02-2005, 09:45 PM   #6
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911Reputation: 911
man patch
       -pnum  or  --strip=num
          Strip   the  smallest  prefix  containing  num  leading
          slashes from each file name found in the patch file.  A
          sequence  of one or more adjacent slashes is counted as
          a single slash.  This controls how file names found  in
          the patch file are treated, in case you keep your files
          in a different directory than the person who  sent  out
          the patch.  For example, supposing the file name in the
          patch file was


          setting -p0 gives the entire file name unmodified,  -p1


          without the leading slash, -p4 gives


          and  not  specifying -p at all just gives you blurfl.c.
          Whatever you end up with is looked for  either  in  the
          current directory, or the directory specified by the -d
Bloody marvelous source of information, those man-pages.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kernel Patch (Patch-2.6.13) ukez Linux - Hardware 4 08-30-2005 04:40 PM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 04:59 AM
Unable to patch kernel with Reiser4 mm patch SlackwareInAZ Slackware 9 04-26-2005 07:33 AM
debian-patch-debianlogo w/2.6.5 kernel-patch-lpp Outabux Debian 11 05-20-2004 02:21 PM
i need PATCH that protect against local root exploit for kernel 2.2.19 Slackware veenrak Linux - Security 2 10-09-2002 10:23 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:31 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration