Skip to content

Comments

kmod: actually ignore missing module deps#4185

Merged
daandemeyer merged 1 commit intosystemd:mainfrom
craftyguy:ignore-missing-modules
Feb 21, 2026
Merged

kmod: actually ignore missing module deps#4185
daandemeyer merged 1 commit intosystemd:mainfrom
craftyguy:ignore-missing-modules

Conversation

@craftyguy
Copy link
Contributor

Prior to f9e7527, IIUC modules in todo were ignored when they were popped and moddep.get(m) returned None for any modules that were missin. After f9e7527, missing modules aren't actually ignored, which leads to e.g.:

‣ aes is a dependency of cifs but is not installed, ignoring
‣ nls is a dependency of cifs but is not installed, ignoring
‣ aead2 is a dependency of cifs but is not installed, ignoring
modinfo: ERROR: Module name nls not found.

(nls.ko doesn't exist, and shouldn't exist in recent (6.19-ish) kernel trees)

@daandemeyer
Copy link
Contributor

daandemeyer commented Feb 20, 2026

I don't think we need to look at builtin, I've had the same patch sitting in the buildstream PR (47fa51e) so if you copy that we can merge it unless there's a good reason to go with this version.

@craftyguy
Copy link
Contributor Author

Ahh ok, yeah I was just copying the condition that lead to the "ignoring" message being printed. It seems weird to me to have that message printed from a different set of conditions from the actual behavior.

Prior to f9e7527, IIUC modules in todo were ignored when they were
popped and `moddep.get(m)` returned None for any modules that were
missin. After f9e7527, missing modules aren't actually ignored, which
leads to e.g.:

```
‣ aes is a dependency of cifs but is not installed, ignoring
‣ nls is a dependency of cifs but is not installed, ignoring
‣ aead2 is a dependency of cifs but is not installed, ignoring
modinfo: ERROR: Module name nls not found.
```

(nls.ko doesn't exist, and shouldn't exist in recent (6.19-ish) kernel
trees)
@craftyguy craftyguy force-pushed the ignore-missing-modules branch from 610d2cc to adf6285 Compare February 21, 2026 03:32
@craftyguy
Copy link
Contributor Author

Updated to drop the builtin condition

@daandemeyer daandemeyer merged commit 9374763 into systemd:main Feb 21, 2026
40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants