LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Kernel Rebuild or patch - Which do kernel watchers use? (https://www.linuxquestions.org/questions/slackware-14/kernel-rebuild-or-patch-which-do-kernel-watchers-use-4175634175/)

bamunds 07-16-2018 10:36 AM

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

mralk3 07-16-2018 11:05 AM

Kernel Rebuild or patch - Which do kernel watchers use?
 
it only patches the source. You will still need to build the binary

bamunds 07-16-2018 11:24 AM

Thanks.
I'll simply continue to download the whole minor release and then build from it as AlienBob's tutorial suggests. Cheers, BrianA_MN

montagdude 07-16-2018 11:25 AM

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

lazardo 07-17-2018 12:15 AM

Quote:

Originally Posted by bamunds (Post 5879793)
...
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*


All times are GMT -5. The time now is 08:02 PM.