DKMS fails to remove old modules after kernel update

That might be the case. We get package dkms directly from upstream.

I am not seeing this issue. Are you both using grub?

1 Like

OK, I see the problem. When you choose grub during the install process, we install a package named eos-dracut.

This is a fork of the AUR package, dracut-hook.

Both packages are doing something quite strange. They are deleting the /usr/lib/modules/<kver> directory.

They should not need to do that. It should be removed with the kernel.

Let me take a look at it and see the best way to fix that.

Thanks for reporting it.

3 Likes

OK, I reviewed both packages. dracut-hook is removing those directories because it is writing the initrd there. We don’t do that so there is no reason for us to remove them.

This should be fixed in the next update of eos-dracut.

9 Likes

Thanks for looking into that everyone. I switched to EOS from Windows a bit over 2 months ago now and have been really happy with everything so far :slight_smile:

1 Like

I am with btrfs and snapshots.

Edit: So it is a dracut issue? That was originally what i was thinking but i wasn’t sure.

This new version of eos-dracut 1.5-1 has been released and it is coming to mirrors near you within minutes to hours.

4 Likes

OMG really? Will it clean up my other desktop with nvidia or am I going to have to try to do that myself first.

I think you should try and report! :wink:

It won’t cleanup old directories, it will only fix it going forward.

Okay i will do that because i did clean it up the same as this one and it was still showing the same. I’ll have to look at it more closely and see if i missed something. There were way too many entries so it took a while to purge them. Maybe I missed something or made a mistake but it’s strange that both systems were reporting the same problem even after cleaning it up. Worse comes to worse i can reinstall it without issue.

1 Like

@manuel
I have updated my nvidia system now and I’m not sure what the new eos-dracut version should be.
I think it installed the new version.

[ricklinux@asus-tuff ~]$ pacman -Qi eos-dracut
Name            : eos-dracut
Version         : 1.5-1
Description     : Dracut scripts and hooks for EndeavourOS
Architecture    : any
URL             : https://endeavouros.com
Licenses        : BSD
Groups          : None
Provides        : None
Depends On      : dracut
Optional Deps   : None
Required By     : None
Optional For    : None
Conflicts With  : dracut-hook  kernel-install-for-dracut
Replaces        : None
Installed Size  : 3.71 KiB
Packager        : manuel <manuel@endeavouros.com>
Build Date      : Sat 04 Jan 2025 06:03:10 PM
Install Date    : Sat 04 Jan 2025 09:30:46 PM
Install Reason  : Explicitly installed
Install Script  : No
Validated By    : SHA-256 Sum  Signature

Anyway i have run dkms status again before cleaning it up and it shows the same as it was before still. So i probably have to manually clean it up which is what i tried to do before. It has a lot of entries but they don’t seem to exist as i had cleaned it up prior.

[ricklinux@asus-tuff ~]$ dkms status
find: β€˜/usr/lib/modules/6.12.3-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.3-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.3-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.4-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.4-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.4-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.6-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.6-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.6-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.7-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.7-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.7-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.63-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.63-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.63-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.64-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.64-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.64-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.65-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.65-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.65-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.67-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.67-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.67-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.68-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.68-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.68-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.4-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.4-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.4-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.6-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.6-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.6-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.7-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.7-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.7-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.65-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.65-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.65-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.67-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.67-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.67-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.68-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.68-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.68-1-lts/’: No such file or directory
nvidia/565.77, 6.12.8-arch1-1, x86_64: installed
nvidia/565.77, 6.6.63-1-lts, x86_64: builtfind: β€˜/usr/lib/modules/6.6.63-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.63-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.63-1-lts/’: No such file or directory
 (Built modules are missing in the kernel modules folder)
nvidia/565.77, 6.6.64-1-lts, x86_64: builtfind: β€˜/usr/lib/modules/6.6.64-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.64-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.64-1-lts/’: No such file or directory
 (Built modules are missing in the kernel modules folder)
nvidia/565.77, 6.6.65-1-lts, x86_64: builtfind: β€˜/usr/lib/modules/6.6.65-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.65-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.65-1-lts/’: No such file or directory
 (Built modules are missing in the kernel modules folder)
nvidia/565.77, 6.6.67-1-lts, x86_64: builtfind: β€˜/usr/lib/modules/6.6.67-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.67-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.67-1-lts/’: No such file or directory
 (Built modules are missing in the kernel modules folder)
nvidia/565.77, 6.6.68-1-lts, x86_64: installedfind: β€˜/usr/lib/modules/6.6.68-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.68-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.68-1-lts/’: No such file or directory
 (Built modules are missing in the kernel modules folder)
nvidia/565.77, 6.6.69-1-lts, x86_64: installed
vmware-workstation/17.6.2_24409262, 6.12.4-arch1-1, x86_64: builtfind: β€˜/usr/lib/modules/6.12.4-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.4-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.4-arch1-1/’: No such file or directory
 (Built modules are missing in the kernel modules folder)
vmware-workstation/17.6.2_24409262, 6.12.6-arch1-1, x86_64: builtfind: β€˜/usr/lib/modules/6.12.6-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.6-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.6-arch1-1/’: No such file or directory
 (Built modules are missing in the kernel modules folder)
vmware-workstation/17.6.2_24409262, 6.12.7-arch1-1, x86_64: installedfind: β€˜/usr/lib/modules/6.12.7-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.7-arch1-1/’: No such file or directory
find: β€˜/usr/lib/modules/6.12.7-arch1-1/’: No such file or directory
 (Built modules are missing in the kernel modules folder)
vmware-workstation/17.6.2_24409262, 6.12.8-arch1-1, x86_64: installed
vmware-workstation/17.6.2_24409262, 6.6.65-1-lts, x86_64: builtfind: β€˜/usr/lib/modules/6.6.65-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.65-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.65-1-lts/’: No such file or directory
 (Built modules are missing in the kernel modules folder)
vmware-workstation/17.6.2_24409262, 6.6.67-1-lts, x86_64: builtfind: β€˜/usr/lib/modules/6.6.67-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.67-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.67-1-lts/’: No such file or directory
 (Built modules are missing in the kernel modules folder)
vmware-workstation/17.6.2_24409262, 6.6.68-1-lts, x86_64: installedfind: β€˜/usr/lib/modules/6.6.68-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.68-1-lts/’: No such file or directory
find: β€˜/usr/lib/modules/6.6.68-1-lts/’: No such file or directory
 (Built modules are missing in the kernel modules folder)
vmware-workstation/17.6.2_24409262, 6.6.69-1-lts, x86_64: installed
[ricklinux@asus-tuff ~]$ 

I will now attempt to clean it up again and see if i missed something?

Edit: I have cleaned out all of the remaining entries in /usr/lib/modules and /var/lib/dkms. I can’t find where the nvidia entries are kept but dkms output hasn’t changed even with removing what i have removed so far.

@manuel
I managed to fix it finally after some hunting down these file locations. Now dkms status is correct on my nvidia system. So going forward hopefully with new kernels it will be working properly now with the new eos-dracut pkg.

Thanks @manuel @dalto for looking into this and helping resolve the issue which i had been seeing happen but didn’t know at first what to think of it. Thanks to @Namey5 and now a few others i see reported the same I now know it wasn’t just my systems. You guy’s are the best!

Edit:

[ricklinux@asus-tuff ~]$ dkms status
nvidia/565.77, 6.12.8-arch1-1, x86_64: installed
nvidia/565.77, 6.6.69-1-lts, x86_64: installed
vmware-workstation/17.6.2_24409262, 6.12.8-arch1-1, x86_64: installed
vmware-workstation/17.6.2_24409262, 6.6.69-1-lts, x86_64: installed
[ricklinux@asus-tuff ~]$ 

:partying_face:

4 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.