(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 ;)
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).
--
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 :D
/edit
Btw, this might be as good a place as any (as in: it's the Manjaro-Thread): I've finally managed to collect some odds and ends and PKGBUILDS I've made / modified for my own use on the PBP with Manjaro/Arch at https://github.com/lsfxz/pinebookpro-things. They might be of use to someone else but me, so I thought I'd share them.