Results 1 to 8 of 8

Thread: Kernel patching.

  1. #1
    Guest

    Kernel patching.

    I've never done any kernel patching, but I'd like to know how to apply the ac6 and the pre-emtion patch to 2.4.12?

  2. #2

    Re: Kernel patching.

    Patching the kernel is easy.....one line like before configuring:

    patch foo.patch | -pN 0

    I would be aware the "ac" kernels are Red Hat specific
    kernels made by Alan Cox (ie....ac tree). These source
    changes often break non-Red Hat distro's because of
    other specific ac-tree changes in the base Red Hat distro.

    ~Guitarlynn

  3. #3
    Guest

    Re: Kernel patching.

    My way..

    Unpacked patch
    patch -p0 < patchname


    You can also zcat or bzcat the packed file and dump the whole shebang into patch -p0

  4. #4
    Moderator
    Advisor
    redhead's Avatar
    Join Date
    Jun 2001
    Location
    Copenhagen, Denmark
    Posts
    811

    Re: Kernel patching.

    What I usualy do..
    Get the .bz2 patch (its better compressed, and should it be corrupted you can allways recover )

    # cd /usr/src/linux
    # bzip2 -dc /path/to/patch.bz2 | patch -p1

  5. #5
    Guest

    Re: Kernel patching.

    even easier:
    patch -Np1 -i filename.patch

  6. #6
    Junior Member
    Join Date
    May 2001
    Posts
    92

    Re: Kernel patching.

    Even easier, put your patches in /usr/src, then run this:

    /usr/src/linux/scripts/patch-kernel.
    This will automatically patch your kernel.
    Cheers
    LiNuts

  7. #7
    Senior Member
    Join Date
    May 2001
    Posts
    472

    Re: Kernel patching.

    Or follow the steps in the info on the -ac patches at www.kernelnewbies.org

  8. #8

    Re: Kernel patching.


    Or follow the steps in the info on the -ac patches at www.kernelnewbies.org
    That's a great link!

Similar Threads

  1. Trojan piggybacks on Microsoft patching
    By genesis in forum Windows - General Topics
    Replies: 0
    Last Post: 01-26-2005, 11:13 PM
  2. So it seems that a lot of people have a lot of patching to do
    By tolstoy in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 04-22-2004, 01:19 AM
  3. patching ...
    By bYTeGr4v3 in forum Linux - Hardware, Networking & Security
    Replies: 0
    Last Post: 07-12-2003, 10:05 AM
  4. Patching a kernel
    By trickster in forum Linux - General Topics
    Replies: 5
    Last Post: 08-26-2002, 09:20 AM
  5. kernel.org ?
    By civ1492 in forum General Chat
    Replies: 4
    Last Post: 12-04-2001, 11:46 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •