LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-16-2018, 10:36 AM   #1
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 XDM/WMaker
Posts: 618

Rep: Reputation: 179Reputation: 179
Kernel Rebuild or patch - Which do kernel watchers use?


I have always wondered what experts in Slackware do with kernel of same major release (i.e 4.4 or 4.14)when a patch is released. Specifically is it better to rebuild the kernel patch release(ex 4.4.138 to 4.4.139) or to apply the patch to the main kernel? Example DL the kernel 4.4.140 or DL the patch (or inc. patch) and apply?

I have always rebuilt the kernel using AlienBob's Kernel Building Tutorial on Slackdocs. But can one skip all the steps; like make bzImage modules, make modules_install, system map, then modifying lilo; and simply apply the patch? I suspect not, that the patch is only applied to the source files in /usr/src/linux, and one must then still make bzImage modules, make modules, symlink the system.map and fix lilo, because nothing will be changed in /boot.

Confirmation of my conclusion is appreciated. Cheers, BrianA_MN
 
Old 07-16-2018, 11:05 AM   #2
mralk3
Senior Member
 
Registered: May 2015
Location: Utah, USA
Distribution: Slackware 14.2 || Slackware-current && CentOS
Posts: 1,371

Rep: Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734Reputation: 734
Kernel Rebuild or patch - Which do kernel watchers use?

it only patches the source. You will still need to build the binary
 
Old 07-16-2018, 11:24 AM   #3
bamunds
Member
 
Registered: Sep 2013
Location: Mounds View MN
Distribution: Slackware64-14.2 XDM/WMaker
Posts: 618

Original Poster
Rep: Reputation: 179Reputation: 179
Thanks.
I'll simply continue to download the whole minor release and then build from it as AlienBob's tutorial suggests. Cheers, BrianA_MN
 
Old 07-16-2018, 11:25 AM   #4
montagdude
Senior Member
 
Registered: Apr 2016
Distribution: Slackware
Posts: 1,455

Rep: Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086Reputation: 1086
Are you talking about live patching? I've never tried it, but it sounds interesting. I always just build a new kernel from source and reboot.

Here is some info from Arch Linux about it:

https://wiki.archlinux.org/index.php..._live_patching
 
Old 07-17-2018, 12:15 AM   #5
lazardo
Member
 
Registered: Feb 2010
Location: SD Bay Area
Posts: 208

Rep: Reputation: Disabled
Quote:
Originally Posted by bamunds View Post
...
Specifically is it better to rebuild the kernel patch release(ex 4.4.138 to 4.4.139) or to apply the patch to the main kernel? Example DL the kernel 4.4.140 or DL the patch (or inc. patch) and apply?
...
Incremental patches bump the minor release and are [almost always] much more efficient because of their relative size and how the kernel makefile works:
Code:
rsync --no-motd rsync://rsync.kernel.org/pub/linux/kernel/v4.x/incr/*4.4*

Last edited by lazardo; 07-17-2018 at 12:23 AM.
 
  


Reply


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
Wubi install - can I patch and rebuild Natty kernel for a KVM switch meggiedude Ubuntu 1 06-26-2011 09:32 AM
Kernel-Patch Debian Logo 2.6.2 not correctly working for custom kernel 2.6.11 smp deepclutch Debian 3 06-27-2005 03:59 AM
YaST Online Update + AMD kernel patch = kernel panic THX1138 Linux - General 3 10-26-2003 04:25 PM
INFO: creating a special secured kernel (grsecurity kernel patch) w sysctl config markus1982 Linux - Security 0 05-25-2003 05:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:31 AM.

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