docs(kmod): expand out-of-tree kmod packaging strategy#18064
Open
ellie-di wants to merge 1 commit into
Open
Conversation
ellie-di
commented
Jul 21, 2026
Contributor
- Add "Two Packaging Patterns": pure OSS kmod subpackage vs. combined kmod+userspace
- Rework Naming and Versioning: stable subpackage name with driver version in Version and kernel NVR in Release, plus the %{version}/%{release} macro-restore needed so %{KVERREL} resolves correctly in Requires
- Document %{KVERREL}-keyed modprobe/license paths for per-kernel coexistence
- Add the kmod-nvidia-open-matched sentinel + boolean-Requires auto-upgrade mechanism and the problem it solves
Contributor
There was a problem hiding this comment.
Pull request overview
Expands kmod packaging documentation with packaging patterns, versioning, per-kernel paths, and automatic kernel tracking.
Changes:
- Documents pure-kmod and combined userspace packaging patterns.
- Proposes stable kmod naming and per-kernel sidecar paths.
- Describes a
-matchedsentinel auto-upgrade mechanism.
Comment on lines
+78
to
+80
| The kmod subpackage name is **stable** — it does *not* embed the driver version | ||
| (e.g., `kmod-nvidia-open`). The driver version and the kernel it was built for | ||
| are encoded in the RPM Version/Release instead: |
Comment on lines
+156
to
+161
| ### The fix — a `-matched` sentinel package | ||
|
|
||
| Mirroring the kernel's own `kernel-modules-extra-matched` mechanism, we add a | ||
| tiny, file-less **sentinel** subpackage plus a boolean dependency so that kmod | ||
| installation tracks the kernel automatically — but only when the admin has | ||
| opted in. Three pieces: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.