You are not logged in.

#1 2024-12-22 21:16:30

evorster
Member
Registered: 2020-07-07
Posts: 90

[Solved] linux-git is not detected by packages that use dkms

Hi there!

I am doing some unrelated bug that might be hiding in the kernel.

Currently I have 4 kernels installed, and can pick which one to boot into with GRUB.
The kernels in question are linux-lts, linux, linux-g14 and linux-git.

I had an issue with the latest nvidia-open-dkms package, and had to install nvidia-550xx-dkms package to have a properly working system while the nvidia engineers are taking a look.

The nvidia card is driving my external monitor, and needs a kernel module, of course.
The main problem I have is that when I re-install it, the dkms hook in pacman rebuilds the kernel module for linux-lts, linux and linux-g14, but not the linux-git module.

Where would be the best place to start looking for reasons why the linux-git package is not triggering a nvidia dkms module to be built for it?

Last edited by evorster (2024-12-23 06:29:56)

Offline

#2 2024-12-22 21:49:08

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,624

Re: [Solved] linux-git is not detected by packages that use dkms

Where would be the best place to start looking for reasons why the linux-git package is not triggering a nvidia dkms module to be built for it?

Do you have https://aur.archlinux.org/packages/linux-git-headers ?

ls -d /usr/lib/modules/*/build/include

Last edited by seth (2024-12-22 21:52:42)

Offline

#3 2024-12-22 22:00:47

evorster
Member
Registered: 2020-07-07
Posts: 90

Re: [Solved] linux-git is not detected by packages that use dkms

Hey again Seth.

No, I don't, and have realized the error of my ways. Wanting to test my assumptions first before adding to this post, I tried installing linux-git-headers first.

Unfortunately linux-git-headers now requires a GPG key that for some reason does not want to download.
Here is the error:
```
:: (1/1) Parsing SRCINFO: linux-git
gpg: error reading key: No public key
pub   rsa4096 2011-09-23 [SC]
      647F28654894E3BD457199BE38DBBDC86092693E
uid           [ unknown] Greg Kroah-Hartman <gregkh@linuxfoundation.org>
uid           [ unknown] Greg Kroah-Hartman <gregkh@kernel.org>
uid           [ unknown] Greg Kroah-Hartman (Linux kernel stable release signing key) <greg@kroah.com>
sub   rsa4096 2011-09-23 [E]


:: PGP keys need importing:
-> ABAF11C65A2970B130ABE3C479BE3E4300411886, required by: linux-git
:: Import? [Y/n]
:: Importing keys with gpg...
gpg: keyserver receive failed: No data
```

I've been trying a few different keyservers, but quite a few of the keys listed show WKD no data when doing a pacman-key refresh.

I'm going to go sleep on this one, but if you have any suggestions, please do feel free to share.

Offline

#4 2024-12-22 22:27:53

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,624

Re: [Solved] linux-git is not detected by packages that use dkms

gpg --keyserver keyserver.ubuntu.com --search-keys 647F28654894E3BD457199BE38DBBDC86092693E

Are you using some AUR helper? Which one?

Offline

#5 2024-12-23 04:40:38

evorster
Member
Registered: 2020-07-07
Posts: 90

Re: [Solved] linux-git is not detected by packages that use dkms

Good morning!
I am using yay as my AUR helper of choice.

It usually imports gpg keys just fine, and saves me a lot of headaches.

Offline

#6 2024-12-23 05:59:02

evorster
Member
Registered: 2020-07-07
Posts: 90

Re: [Solved] linux-git is not detected by packages that use dkms

Ok, so I found this:
https://bbs.archlinux.org/viewtopic.php?id=249943

Now I am starting to wonder if the Linus' key is in pacman but not in yay?

We also seem to be getting way off topic here while going down this little rabbit hole. Should I start a new topic just for yay not being able to import this key?

Offline

#7 2024-12-23 06:07:11

evorster
Member
Registered: 2020-07-07
Posts: 90

Re: [Solved] linux-git is not detected by packages that use dkms

OK, nevermind, I am finally able to build linux-git-headers, will update the results when it completes.

The way I think yay works is that it uses the user's gpg, and you just need to import a key for Linus that is trusted.

The magic bit that worked for me was to execute

gpg --locate-keys torvalds@kernel.org

As myself. This imported Linus' key, and then yay was happy and continued along happily.
Now I'll have to run some errands, and then will update this topic finally with whether or not installing linux-git-headers solved the initial problem. (It most probably will, I am sure of it)

Last edited by evorster (2024-12-23 06:07:40)

Offline

#8 2024-12-23 06:29:08

evorster
Member
Registered: 2020-07-07
Posts: 90

Re: [Solved] linux-git is not detected by packages that use dkms

OK, just installing linux-git-headers was not enough to trigger the build of the nvidia-550xx-dkms dkms modules, but the dkms hook did tell me that something was missing:

:: Running post-transaction hooks...
(1/3) Arming ConditionNeedsUpdate...
(2/3) Updating module dependencies...
(3/3) Install DKMS modules
==> ERROR: Missing 6.13.0-rc4-1-git kernel modules tree for module ddcci/0.4.5.
==> ERROR: Missing 6.13.0-rc4-1-git kernel modules tree for module nvidia/550.142.

This may be because linux-git is a fast moving target, and the version of it could have changed between me building the kernel and the headers. Will try building the kernel again now, and see what that does.

OK, that seemed to do the trick, and I now have a dkms module for nvidia-550xx-dkms.
Marking this topic as solved. To future readers, good luck!

Offline

#9 2024-12-23 08:51:26

seth
Member
From: Don't DM me only for attention
Registered: 2012-09-03
Posts: 71,624

Re: [Solved] linux-git is not detected by packages that use dkms

Now I am starting to wonder if the Linus' key is in pacman but not in yay?

Neither. Sorry, I missed tha Linus' key was the failing one and not Greg's
The key was poisoned, I guess that's why it's no longer on ubuntu's servers - https://bbs.archlinux.org/viewtopic.php?id=249943
(don't freak out, you did everything right)

Generally, keys required by AUR packages need to be in your own keyring, this has nothing to do with pacman's keyring for package signing.
And yes: the versions have to align perfectly - you can fake that, but because the kernel API isn't stable, that'd not be the best of all ideas.

Offline

Board footer

Powered by FluxBB