Artix Linux Forum

Artix Linux => Package management => Topic started by: castilma on 12 October 2019, 14:38:05

Title: Kernel updates remove modules for the running kernel.
Post by: castilma on 12 October 2019, 14:38:05
When updating the kernel, pacman also removes the currently running kernel, including the modules.
This may prevent the user from mounting new filesystems until a reboot. For example iso9660 or udf (for dvds).

When I encountered this problem I thought it was a vlc bug or something until I manually tried to mount the disc.

So it may be only a minor issue, but it can cause a lot of confusion.

Title: Re: Kernel updates remove modules for the running kernel.
Post by: nous on 12 October 2019, 18:34:52
Yes, this is the default pacman behaviour and known to cause problems when a kernel module is requested before reboot. Work around: extract the current kernel's package somewhere in /tmp and insmod the module manually.
Title: Re: Kernel updates remove modules for the running kernel.
Post by: castilma on 27 October 2019, 19:14:59
Sorry for the late reply.

How can we fix it? Rebooting is in my case easier than manually insmoding the necessary modules.
But I don't want it to stay this way. It is just unnecessary pain. And we are using free software. So it should be fixable and fixed.

If it's a known problem, others should already have come up with ideas. Are you aware of any of these?
Title: Re: Kernel updates remove modules for the running kernel.
Post by: castilma on 10 June 2020, 16:14:27
If someone here  is interested, I found this solution on reddit (https://www.reddit.com/r/archlinux/comments/4zrsc3/keep_your_system_fully_functional_after_a_kernel/).

It is not perfect, though. Read the comments for potential problems.
Title: Re: Kernel updates remove modules for the running kernel.
Post by: alium on 10 June 2020, 21:57:52
you should reboot your pc after every kernel update, it is better... if yu can not reoot, better if you wait with upgrade your OS ...
Title: Re: Kernel updates remove modules for the running kernel.
Post by: SGOrava on 11 June 2020, 19:04:17
It would be best if Arch supported live kernel update/patching-
Title: Re: Kernel updates remove modules for the running kernel.
Post by: castilma on 14 July 2020, 17:23:37
you should reboot your pc after every kernel update, it is better... if yu can not reoot, better if you wait with upgrade your OS ...

The thing is I'm using a cron job to update.

Yes, I know that it's not recommended. But I don't want to always do it manually. A system should be able to update itself automatically. On pacman that is not (officially) supported, and I hate that.