Skip to content

Add ISCSI packages to support bare metal shapes in OCI - #2670

Merged
supakeen merged 1 commit into
osbuild:mainfrom
psiayn:bm-support
Oct 21, 2026
Merged

supakeen merged 1 commit into
osbuild:mainfrom
psiayn:bm-support

Conversation

@psiayn

@psiayn psiayn commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

BM shapes require additional configuration so that these images can be booted up in OCI.

This PR aims to add those changes. Currently, we are testing these changes in our pipeline.

@supakeen

supakeen commented Sep 7, 2026

Copy link
Copy Markdown
Member

Is this PR identical to #2669 ?

@src-up

src-up commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

Is this PR identical to #2669 ?

Hey @supakeen you are right. I have closed 2669 as duplicate. Thanks

@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown

This PR is stale because it had no activity for the past 30 days. Remove the "Stale" label or add a comment, otherwise this PR will be closed in 7 days.

@github-actions github-actions Bot added the Stale label Oct 8, 2026
@github-actions github-actions Bot removed the Stale label Oct 9, 2026
@psiayn
psiayn force-pushed the bm-support branch 2 times, most recently from ecb6164 to 8fd3baf Compare October 13, 2026 15:12
@psiayn
psiayn marked this pull request as ready for review October 16, 2026 06:00
@psiayn
psiayn requested a review from a team as a code owner October 16, 2026 06:00
@psiayn psiayn changed the title [DRAFT] Add ISCSI packages to support bare metal shapes in OCI Add ISCSI packages to support bare metal shapes in OCI Oct 16, 2026
@achilleas-k

Copy link
Copy Markdown
Member

Thanks. The changes look good, but I'd like to ask for a few things:

  1. Can you edit the commit messages to match the rest of the git history? (See https://github.com/osbuild/image-builder/blob/main/CONTRIBUTING.md#creating-a-pr)
  2. The two bug fix commits can be squashed, I think (this isn't really that important).
  3. Could you please run ./tools/gen-manifest-checksums.sh on each commit and commit the changes? This one is actually needed to pass PR checks. (https://github.com/osbuild/image-builder/blob/main/CONTRIBUTING.md#creating-a-pr)

@psiayn
psiayn force-pushed the bm-support branch 2 times, most recently from e813f7a to b5f73e8 Compare October 19, 2026 10:48
@src-up

src-up commented Oct 19, 2026

Copy link
Copy Markdown
Contributor

LGTM

- filename: "oci.conf"
config:
add_drivers:
- "mlx5_core"

@supakeen supakeen Oct 20, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Should we just keep this? Removing it changes a bunch of older image types and it'd get overwritten on 10.4/9.10+ anyhow.

Or was it always wrong to have?

@src-up src-up Oct 20, 2026 •

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.

From what i understand this stuff is now moved under "version_greater_or_equal: "10.4"" so that all RHEL 10 releases dont get the changes. I think this was done to prevent currently supported 10.2
GA releases to be modified. But @psiayn can help us understand this better,

@achilleas-k achilleas-k Oct 20, 2026 •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The condition adds mlx5_core, iscsi_ibft, and iscsi to 10.4+, but the removal of this block removes mlx5_core from the < 10.4 images. And I think that's not what we want.

Same for the RHEL 9 version.

The reason we have those manifest checksums is to make scenarios like these easier to trace. You can see that all OCI images, including 10.0 - 10.3, were modified by this change.

If you run ./tools/gen-manifest-diffs, you'll see the diff: the dracut stage that adds mlx5_core is being removed by this commit.

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.

Ah good point.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Oh right yeah ill fix this right away. I was thinking along the lines of these changes would come under 10.4 and 9.10+ so move them all under the condition. My bad.

Add ISCSI drivers and modules to initramfs for
RHEL 10.4+ and RHEL 9.10+ OCI images.

@achilleas-k achilleas-k left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Very nice. Thank you!

LGTM

@achilleas-k
achilleas-k added this pull request to the merge queue Oct 21, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 21, 2026
@supakeen
supakeen added this pull request to the merge queue Oct 21, 2026
Merged via the queue into osbuild:main with commit f43ddf4 Oct 21, 2026
55 checks passed
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.

4 participants