Skip to content

Update RHEL 9 and 10 OCI image definitions [HMS-10328, HMS-10472] - #2333

Merged
ochosi merged 4 commits into
osbuild:mainfrom
achilleas-k:oci-stuff
May 13, 2026
Merged

ochosi merged 4 commits into
osbuild:mainfrom
achilleas-k:oci-stuff

Conversation

@achilleas-k

@achilleas-k achilleas-k commented May 12, 2026 •

Copy link
Copy Markdown
Member

Update RHEL 9 and RHEL 10 OCI image definitions:

  • Add a dracut config file called oci.conf that adds the mlx5_core driver HMS-10472.
  • Change the default partitioning to LVM HMS-10328.

I made some decisions about the details of the partitioning layout. See the the commit message(s) for details.

@achilleas-k
achilleas-k requested a review from a team as a code owner May 12, 2026 15:45
ochosi
ochosi previously approved these changes May 12, 2026

@ochosi ochosi 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.

After having read through the tickets and the Oracle Linux docs, this generally looks good. I think there are some implicit assumptions/choices that we could document in the commit message, like

  • 64 GB default size is what we use for other LVM cloud images (but this is defined in pungi)
  • 30 GB for / is a consequence of the default image size and the recommendation from the Oracle docs (half of the overall disk size)
  • omitting the oled directory makes sense (but we may have to add it later)

Change the default partitioning for RHEL 10 OCI images to LVM.  The
referenced ticket requests adding a logical volume mounted at /var/oled.
According to the Oracle documentation [1], this volume is reserved for
writing diagnostic data using the Oracle Linux Enhanced Diagnostics
package, which is not available in RHEL.  Therefore, we shouldn't
include it by default.

The disk layout here is based on the documentation for the default
partitioning of Oracle Linux 10 [2].  The swap LV is omitted since the
size is memory-dependent and we generally don't include swap partitions
or LVs in our default partitioning.

HMS-10328

[1] https://blogs.oracle.com/linux/oracle-linux-enhanced-diagnostics
[2] https://docs.oracle.com/en/operating-systems/oracle-linux/10/install/install-DefaultDiskPartitionLayout.html
Change the default partitioning for RHEL 9 OCI images to LVM.  The
referenced ticket requests adding a logical volume mounted at /var/oled.
According to the Oracle documentation [1], this volume is reserved for
writing diagnostic data using the Oracle Linux Enhanced Diagnostics
package, which is not available in RHEL.  Therefore, we shouldn't
include it by default.

The disk layout here is based on the documentation for the default
partitioning of Oracle Linux 9 [2].  The swap LV is omitted since the
size is memory-dependent and we generally don't include swap partitions
or LVs in our default partitioning.

HMS-10328

[1] https://blogs.oracle.com/linux/oracle-linux-enhanced-diagnostics
[2] https://docs.oracle.com/en/operating-systems/oracle-linux/9/install/install-DefaultDiskPartitionLayout.html
@ochosi
ochosi enabled auto-merge May 12, 2026 16:06

@supakeen supakeen 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.

Does OCI have something to resize the pvs/lvs?

@achilleas-k

Copy link
Copy Markdown
Member Author

Standard tooling should work to grow the LV with lvextend and then xfs_growfs for the filesystem. There's also oci-growfs as part of oci-utils which, afaik, isn't available in RHEL, but it might be made available as part of the whole RHEL on OCI effort.

@ochosi
ochosi added this pull request to the merge queue May 13, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks May 13, 2026
@ochosi
ochosi added this pull request to the merge queue May 13, 2026
Merged via the queue into osbuild:main with commit b480f79 May 13, 2026
20 checks passed
@achilleas-k
achilleas-k deleted the oci-stuff branch May 18, 2026 08:43
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.

3 participants