You are not logged in.

#1 2023-09-25 06:38:48

cloverskull
Member
Registered: 2018-09-30
Posts: 212

nvidia-dkms rebuilding for every previously installed kernel version

Hey friends,

Today nvidia-dkms was upgraded and I noticed that it rebuilt the modules for all previously installed kernel versions. To be clear, I use 'linux' and 'linux-headers' and have never used any other kernel. But the kernel has upgraded naturally several times and today I noticed when nvidia-dkms was upgraded, it rebuilt for all those old versions.

<snip>

:: Running pre-transaction hooks...
(1/2) Checking Arch News with Informant ...
There are no unread news items
(2/2) Remove DKMS modules
==> dkms remove --no-depmod nvidia/535.104.05 -k 6.4.10-arch1-1.1
==> dkms remove --no-depmod nvidia/535.104.05 -k 6.4.11-arch1-1
==> dkms remove --no-depmod nvidia/535.104.05 -k 6.5.4-arch2-1.1
==> depmod 6.4.10-arch1-1.1
==> depmod 6.4.11-arch1-1
==> depmod 6.5.4-arch2-1.1

<snip>

:: Running post-transaction hooks...

<snip>
( 9/18) Install DKMS modules
==> dkms install --no-depmod nvidia/535.113.01 -k 6.5.3-arch1-1.1
==> dkms install --no-depmod nvidia/535.113.01 -k 6.4.11-arch1-1
==> dkms install --no-depmod nvidia/535.113.01 -k 6.4.12-arch1-1.1
==> dkms install --no-depmod nvidia/535.113.01 -k 6.5.2-arch1-1.1
==> dkms install --no-depmod nvidia/535.113.01 -k 6.4.10-arch1-1.1
==> dkms install --no-depmod nvidia/535.113.01 -k 6.5.4-arch2-1.1
==> depmod 6.5.3-arch1-1.1
==> depmod 6.4.12-arch1-1.1
==> depmod 6.5.2-arch1-1.1
==> depmod 6.4.10-arch1-1.1
==> depmod 6.4.11-arch1-1
==> depmod 6.5.4-arch2-1.1

I see in the wiki how I can remove these old modules manually, but is there some automatic way of cleaning these up so that they don't have to be rebuilt every time nvidia-dkms is upgraded?

Thanks!

Offline

#2 2023-09-26 00:03:25

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 24,376

Re: nvidia-dkms rebuilding for every previously installed kernel version

They'd normally not be there in the first place. Did you install kernel-modules-hook but not enable the cleanup service?

Offline

#3 2023-09-26 19:43:27

cloverskull
Member
Registered: 2018-09-30
Posts: 212

Re: nvidia-dkms rebuilding for every previously installed kernel version

Thanks! That may have been the issue. I had that installed but the cleanup service was not enabled. Hopefully this will mitigate the issue moving forward.

Offline

Board footer

Powered by FluxBB