02-10-2020, 01:24 AM
(02-08-2020, 08:28 AM)llsf Wrote:(02-07-2020, 06:35 PM)Der Geist der Maschine Wrote:(02-01-2020, 10:47 AM)Der Geist der Maschine Wrote: Kernel Updates
I installed a small program and that triggered pacman to update the whole system including the kernel. During this process, I realized kernel updates could be handled better:
Kernel updates delete the old modules and so the newly installed modules don't match the running kernel. The running kernel can't now load any further modules. I believe modules should never be deleted by the system (or at least in a much smarter way).
This becomes quite annoying. How do you guys work around this issue?
I can't even insmod a new module with the right path to it in the old, running, kernel as it refuses to load modules from another kernel version.
Well… a new kernel means you gotta reboot to remain up to date – probably a good way to nudge you in the right direction with regards to having things as recent as possible no matter what
The kernel engineer is working too hard.
Quote:More seriously, though: You can either downgrade the kernel again until you've loaded the modules you need (if this doesn't happen too often), or see if one of the pre-made solutions work for you, like: https://aur.archlinux.org/packages/kernel-modules-hook (haven't tested that one, no guarantees for anything).
I tried to downgrade the kernel by following https://wiki.manjaro.org/index.php?title...g_packages "First you need to install Downgrade, which is available in the official repositories of Manjaro."
I took me some time to figure out that (lowercase) downgrade is available in AUR. It does not list any available packages, though.
Code:
manjaro:~# downgrade linux-pinebookpro
manjaro:~#
This time, it was too late for the kernel-modules-hook package. As it's an AUR package, it seems to break from time as it's not developed in sync with the kernel (build) package.
Eventually, I went with compiling the kernel module. Not that it was easy to work around the kernel module magic numbers. Next time, I will be faster.
Quote:On servers, I like only allowing pre-signed modules in my precious kernels anyway – this would probably make this all more hellish. I should fiddle around with that on a desktop Arch someday, just for shits and giggles