LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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-Multilib XDM/FVWM3
Posts: 780

Rep: Reputation: 260Reputation: 260Reputation: 260
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
Slackware Contributor
 
Registered: May 2015
Distribution: Slackware
Posts: 1,904

Rep: Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053Reputation: 1053
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-Multilib XDM/FVWM3
Posts: 780

Original Poster
Rep: Reputation: 260Reputation: 260Reputation: 260
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: 2,011

Rep: Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619Reputation: 1619
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: 274

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



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 10:49 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
Open Source Consulting | Domain Registration