Skip to content

feat(mlnx-ofa_kernel): add userspace mlnx-ofa_kernel package#17811

Open
ellie-di wants to merge 1 commit into
4.0from
edehghani/mlnx-ofa_kernel
Open

feat(mlnx-ofa_kernel): add userspace mlnx-ofa_kernel package#17811
ellie-di wants to merge 1 commit into
4.0from
edehghani/mlnx-ofa_kernel

Conversation

@ellie-di

Copy link
Copy Markdown
Contributor

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

@ellie-di ellie-di requested a review from a team as a code owner June 25, 2026 22:45
Copilot AI review requested due to automatic review settings June 25, 2026 22:45

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

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 downloaded MLNX_OFED_SRC source 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 -source subpackage.
  • A dnf5 actions hook (.actions) + mlnx-ofa-kmod-autoupdate.in script 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.

Comment thread base/comps/mlnx-ofa_kernel/mlnx-ofa-kmod-autoupdate.in Outdated
Comment thread base/comps/mlnx-ofa_kernel/mlnx-ofa-kmod.actions Outdated
@ellie-di ellie-di force-pushed the edehghani/mlnx-ofa_kernel branch from d00a166 to ec08d06 Compare June 25, 2026 23:03
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