Working With Old Arch Kernel

It’s been long time annoying that, upon each kernel update on my arch linux desktop, the currently running kernel is deleted, including all the modules an header files. The consequence is that subsequent loading of modules is impossible because they don’t longer exist on disk. Modules like the drivers for NFS, an USB stick, docker-related stuff …

Only solution : reboot !

Finally, I’ve found an AUR package kernel-modules-hook that copies the modules prior to upgrading the kernel, then moves them back to the original location. It also takes care of older module versions, so that they get removed if the kernel is no longer present.

Now, no more hassle when upgrading the kernel !