Skip to content

Conversation

@redjard
Copy link
Contributor

@redjard redjard commented Nov 1, 2025

The error when still having an (invalid) kernel-version while having no-kmod set is highly unintuitive.
I ran into it while scripting and had to look at the code to have any chance figuring it out.

image

The code of _process_kernel_version accounts for this, generating ample warnings and also ignoring --kernel-versions and building successfully, iff when it is called, no_kmod is already set. Which in my case it was not.

This "fixes" the issue partially, only when --no-kmod is set as an argument. It remains broken when no_kmod is set in ugrd.toml and versions as a flag (as happened in my case).

It also changes the output of --help.

The proper fix would be some kind of priority system, that ensures no_kmod is fully loaded and handled before any flag relying on it is.
Consider this a bug report

@desultory desultory merged commit 9955118 into desultory:main Nov 2, 2025
5 checks passed
@redjard redjard deleted the patch-1 branch November 5, 2025 22:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants