feat(mlnx-ofa_kernel): add userspace mlnx-ofa_kernel package#17811
Open
ellie-di wants to merge 1 commit into
Open
feat(mlnx-ofa_kernel): add userspace mlnx-ofa_kernel package#17811ellie-di wants to merge 1 commit into
ellie-di wants to merge 1 commit into
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds a new local-spec component, mlnx-ofa_kernel, providing the userspace half of NVIDIA/Mellanox OFED support (openibd init script/units, interface-manager scripts, modprobe configs, udev rules, and the pristine driver source). It complements the kernel-module half added in PR #17780. The package also ships a libdnf5 post_transaction actions hook plus a helper script (mlnx-ofa-kmod-autoupdate) that, after a kernel upgrade, auto-installs the matching kmod-mlnx-ofa_kernel build when the kmod was already in use.
Changes:
- New component definition (
mlnx-ofa_kernel.comp.toml): local spec,release.calculation = "manual", and a downloadedMLNX_OFED_SRCsource bundle (shared with the kernel component). - New local spec that unpacks the inner mlnx-ofa_kernel SRPM from the OFED bundle and installs userspace scripts/units/configs plus a
-sourcesubpackage. - A dnf5 actions hook (
.actions) +mlnx-ofa-kmod-autoupdate.inscript for post-kernel-upgrade kmod auto-install, with the rendered specs and lock file checked in.
Reviewed changes
Copilot reviewed 8 out of 9 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
base/comps/mlnx-ofa_kernel/mlnx-ofa_kernel.comp.toml |
Component definition: local spec, manual release, downloaded source bundle. |
base/comps/mlnx-ofa_kernel/mlnx-ofa_kernel.spec |
Local userspace spec; %prep bundle→SRPM→tarball extraction, %install, scriptlets, -source subpackage. |
base/comps/mlnx-ofa_kernel/mlnx-ofa-kmod-autoupdate.in |
Post-transaction helper; contains an rpm -q glob bug that disables the auto-install (see comment). |
base/comps/mlnx-ofa_kernel/mlnx-ofa-kmod.actions |
libdnf5 actions hook; unscoped * pkg-filter causes per-package console/syslog noise (see comment). |
specs/m/mlnx-ofa_kernel/mlnx-ofa_kernel.spec |
Rendered spec (azldev header + identical body); regenerate after source fixes. |
specs/m/mlnx-ofa_kernel/mlnx-ofa-kmod-autoupdate.in |
Rendered copy of the helper script (carries the same bug until re-rendered). |
specs/m/mlnx-ofa_kernel/mlnx-ofa-kmod.actions |
Rendered copy of the actions hook. |
specs/m/mlnx-ofa_kernel/sources |
Lookaside SHA512 manifest for the downloaded OFED bundle. |
locks/mlnx-ofa_kernel.lock |
Component lock fingerprint. |
d00a166 to
ec08d06
Compare
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.
This PR adds the mlnx-ofa_kernel userspace component to Azure Linux, bundled with a post-transaction hook that automatically installs matching kernel module versions when the kernel upgrades on systems where the kmod is already in use.
The matching kernel module is added in PR: feat: add mlnx-ofa_kernel kernel module