FS#79441 - [linux] Add "kernel-modules-hook" as optional dependency or integrate
Attached to Project:
Arch Linux
Opened by Klaus Frank (agowa338) - Tuesday, 22 August 2023, 13:35 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:23 GMT
Opened by Klaus Frank (agowa338) - Tuesday, 22 August 2023, 13:35 GMT
Last edited by Buggy McBugFace (bugbot) - Saturday, 25 November 2023, 20:23 GMT
|
Details
Description: The package "kernel-modules-hook" allows to
keep the kernel and module loading functional after kernel
updates by using hooks that copy modules. Because this is
currently a very often reported problem with Arch Linux,
(and it's fixed by just installing that module), I'd like to
request adding it as an optional dependency. Once it is an
optional dependency people will see it on the package page
as one as well as be informed by pacman and pacstrap about
it.
Additional info: * https://archlinux.org/packages/extra/any/kernel-modules-hook/ Steps to reproduce: * Install kernel update * Try to do anything that requires loading a module, like plugging in a USB-Stick with a filesystem that hasn't been attached to since boot, or dock/undock a notebook. |
This task depends upon
Closed by Buggy McBugFace (bugbot)
Saturday, 25 November 2023, 20:23 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/linux/issues/13
Saturday, 25 November 2023, 20:23 GMT
Reason for closing: Moved
Additional comments about closing: https://gitlab.archlinux.org/archlinux/p ackaging/packages/linux/issues/13
But as this is not the same request I opted for a separate ticket. As a full versioned kernel install would also address having rollback or selectability within the bootloader, which this doesn't.
However merging kernel-modules-hook would allow to keep the currently running kernel unimpacted by the update, I.E. avoid all of the issues and allow to avoid the need to reboot as well as potential crashes when docking/undocking a notebook.
$ sudo pacman -Syu --ignore linux
Yeah yeah, partial upgrades.. blah blah...it doesn't really apply to kernels.
This thing smells like a dirty hack. It is not mentioned in the Wiki (which is a bad sign). See also
FS#76486where upstream is apparently unresponsive.BTW: the continuous[2] advices for rebooting to fix various problems sound a bit like windows cliche.
[1] https://github.com/saber-nyan/kernel-modules-hook/pull/20#issuecomment-1569665493
[2] https://bugs.archlinux.org/task/77789#comment216067
Well, I gotta say, this is 1 area where Windows gets it totally right. Ever noticed how Windows only applies important updates at reboot or shutdown? Imagine how many problems would be solved if Arch (or Linux distros in general) did the same thing. Food for thought...
I.E. when installing a kernel it keeps both the directory for the newly installed kernel and the currently running one (e.g. as reported by uname) in "/usr/lib/modules/".
We could do that either using a slightly modified version of kernel-modules-hook that does also the deletion part, or just keep all of them around until (manual) clenup (cleanup could also be a self-deleting systemd unit that triggers on next startup)...