feat(kmod-nvidia-open): add kmod-nvidia-open-matched sentinel package for automatic kernel upgrade tracking#17920
Open
ellie-di wants to merge 1 commit into
Open
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a “matched” sentinel RPM and corresponding rich dependencies so that, when kmod-nvidia-open is present, installing/upgrading the kernel will automatically pull in the kmod-nvidia-open build that matches the new kernel’s %{KVERREL} (x86_64/aarch64).
Changes:
- Introduces
kmod-nvidia-open-matched(empty/sentinel) and akmod-nvidia-open-uname-r = %{KVERREL}virtual provide in the NVIDIA open kmod include. - Adds a kernel-side conditional rich dependency to pull
kmod-nvidia-openfor the installed kernel when the sentinel is installed. - Bumps
azl_pkgreleaseand refreshes the kernel lock fingerprint/rendered outputs.
Reviewed changes
Copilot reviewed 5 out of 6 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| base/comps/kernel/kmod-nvidia-open.inc | Adds kmod-nvidia-open-uname-r provide, requires the new sentinel, and defines the kmod-nvidia-open-matched package. |
| base/comps/kernel/kernel.comp.toml | Bumps azl_pkgrelease and injects the kernel rich dependency via an overlay. |
| specs/k/kernel/kmod-nvidia-open.inc | Rendered copy of the updated NVIDIA open kmod include. |
| specs/k/kernel/kernel.spec | Rendered kernel spec gains the arch-gated rich dependency on kmod-nvidia-open-uname-r when kmod-nvidia-open-matched is installed. |
| specs/k/kernel/kernel.azl.macros | Rendered macro update for azl_pkgrelease. |
| locks/kernel.lock | Updates input-fingerprint to reflect component input changes. |
de3ac53 to
26215a8
Compare
26215a8 to
2e336d5
Compare
5ccd156 to
01bd3a0
Compare
01bd3a0 to
27678a7
Compare
27678a7 to
c404f41
Compare
…o-upgrade on kernel update
c404f41 to
08f34dd
Compare
| # 'installonlypkg(kernel-module)' token). | ||
| Provides: installonlypkg(kernel-module) | ||
| Requires: %{name}-core-uname-r = %{KVERREL} | ||
| Requires: kmod-nvidia-open-matched = %{version}-%{release} |
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.
Adds auto-upgrade support for kmod-nvidia-open so that when a user has the NVIDIA open kernel module installed, upgrading the kernel automatically pulls in the matching kmod-nvidia-open for the new kernel version.
A new package
kmod-nvidia-open-matchedis introduced. This is an empty sentinel/meta package (no payload files).Its purpose is to enable automatic installation of the matching
kmod-nvidia-openpackage for each installed kernel version. When this sentinel is installed, kernel uses a conditional rich dependency:Requires: ((kmod-nvidia-open-uname-r = %{KVERREL}) if kmod-nvidia-open-matched)This keeps NVIDIA kernel modules aligned with kernel upgrades on x86_64/aarch64. Removing this sentinel disables future auto-pull behavior, but does not remove already installed versioned kmod-nvidia-open packages.