Skip to content

docs(kmod): expand out-of-tree kmod packaging strategy#18064

Open
ellie-di wants to merge 1 commit into
4.0from
edehghani/update-kmod-strategy-doc
Open

docs(kmod): expand out-of-tree kmod packaging strategy#18064
ellie-di wants to merge 1 commit into
4.0from
edehghani/update-kmod-strategy-doc

Conversation

@ellie-di

Copy link
Copy Markdown
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

@ellie-di
ellie-di requested a review from a team as a code owner July 21, 2026 00:00
Copilot AI review requested due to automatic review settings July 21, 2026 00:00

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 -matched sentinel auto-upgrade mechanism.

Comment thread docs/oss-kmod-packaging-strategy.md
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:
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