Skip to content

Update EL10 Azure images with changes made in RHEL 9.6 - #1472

Merged
thozza merged 12 commits into
osbuild:mainfrom
achilleas-k:rhel10/azure/align
Apr 29, 2025
Merged

thozza merged 12 commits into
osbuild:mainfrom
achilleas-k:rhel10/azure/align

Conversation

@achilleas-k

Copy link
Copy Markdown
Member

This PR aligns RHEL 10 and CentOS Stream 10 Azure images with the recent changes made in RHEL 9.6+ while onboarding the official Azure marketplace images.
See individual commit messages for details and links to the corresponding commits in RHEL 9.

See also #1396 for the list of original issues for RHEL 9.6.

@achilleas-k
achilleas-k requested a review from a team as a code owner April 28, 2025 10:53
@achilleas-k
achilleas-k requested review from croissanne, mvo5, ondrejbudai, schuellerf, supakeen and thozza and removed request for schuellerf and supakeen April 28, 2025 10:53
@achilleas-k

Copy link
Copy Markdown
Member Author

Need to fix the config map for azure images. They need to be split into rhel 9 and 10.

mvo5
mvo5 previously approved these changes Apr 28, 2025

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

Looks good, one tiny suggestion about an error string that is no longer about rhel9 only

Comment thread pkg/distro/rhel/azure.go Outdated
datalossWarningScriptPath := "/usr/local/sbin/temp-disk-dataloss-warning"
datalossWarningScript, err := fsnode.NewFile(datalossWarningScriptPath, common.ToPtr(os.FileMode(0755)), nil, nil, []byte(azureDatalossWarningScriptContent))
if err != nil {
return nil, nil, fmt.Errorf("rhel9/azure: error creating file node for dataloss warning script: %w", err)

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.

The rhel9/azure: is no longer accurate, is it?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Well spotted!

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed

Set the chrony refclock options in the ImageConfig on RHEL 10 and CentOS
Stream 10 to work with the time sync device available on Microsoft
Azure.

This is the same change that was made in RHEL 9.6+
24781c6
Add intel_uncore and acpi_cpufreq to the list of blacklisted modules for
Azure on RHEL 10 and CentOS Stream 10.

This is the same change that was made in RHEL 9.6
3be17ee
mvo5
mvo5 previously approved these changes Apr 28, 2025
thozza
thozza previously approved these changes Apr 29, 2025

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

Thanks. The changes look good.

One nitpick: the change fb868e9 linked from the commit message of 45e578e points to the wrong change.

@achilleas-k
achilleas-k dismissed stale reviews from thozza and mvo5 via 9af8f1a April 29, 2025 08:40
This is the same change that was made in RHEL 9.6
d9f8072
This is the same change that was made in RHEL 9.6
47ba976
Adapt kernel args for RHEL 10 and CentOS Stream 10 Azure images to match
RHEL 9.

This is a combination of the same changes that were made in RHEL 9.6:
- Add nvme_core.io_timeout=240: 17f32e8
- Change console kernel args for aarch64:
  2e583da

Note that the net.ifnames=0 argument is not added since we dropped it
across the board for EL10 images (see PR osbuild#818).
Move the dataloss warning script contents to distro/rhel/ (out of rhel9)
so it can be used in rhel10 as well.
Add a script and systemd service in RHEL 10 and CentOS Stream 10 Azure
images that creates a file on temporary filesystems warning users about
dataloss.

This is the same change that was made in RHEL 9.6
0ab8d33
Add two unmanaged devicees to the NetworkManager config for RHEL 10 and
CentOS Stream 10 Azure images.

This is the same change that was made in RHEL 9.6
1de7f28
@achilleas-k

Copy link
Copy Markdown
Member Author

Thanks. The changes look good.

One nitpick: the change fb868e9 linked from the commit message of 45e578e points to the wrong change.

Horrible mistake. Fixed it now. Thanks for checking.

@thozza
thozza enabled auto-merge April 29, 2025 09:13
@thozza
thozza added this pull request to the merge queue Apr 29, 2025
Merged via the queue into osbuild:main with commit 2c90e1c Apr 29, 2025
@achilleas-k
achilleas-k deleted the rhel10/azure/align branch April 29, 2025 12:12
achilleas-k added a commit to achilleas-k/osbuild-composer that referenced this pull request Apr 29, 2025
tag v0.140.0
Tagger: imagebuilder-bot <[email protected]>

Changes with 0.140.0

----------------
  * Loader part override followups (osbuild/image-builder#1466)
    * Author: Michael Vogt, Reviewers: Tomáš Hozza
  * RHEL-10/gce: install cloud-utils-growpart by default (osbuild/image-builder#1463)
    * Author: Tomáš Hozza, Reviewers: Michael Vogt, Simon de Vlieger
  * base-host-check: expand to cover more (COMPOSER-2498) (osbuild/image-builder#1432)
    * Author: Simon de Vlieger, Reviewers: Tomáš Hozza
  * rhel8,9: move partitioning into YAML (osbuild/image-builder#1390)
    * Author: Michael Vogt, Reviewers: Tomáš Hozza

— Somewhere on the Internet, 2025-04-28

---

tag v0.141.0
Tagger: imagebuilder-bot <[email protected]>

Changes with 0.141.0

----------------
  * Shrink the current installer images a bit (osbuild/image-builder#1423)
    * Author: Brian C. Lane, Reviewers: Achilleas Koutsou, Simon de Vlieger, Tomáš Hozza
  * Update EL10 Azure images with changes made in RHEL 9.6 (osbuild/image-builder#1472)
    * Author: Achilleas Koutsou, Reviewers: Michael Vogt, Tomáš Hozza
  * distro: add DNFSetReleaseVerVar to ImageConfig (osbuild/image-builder#1465)
    * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Tomáš Hozza
  * test/base-host-check.sh: fix disabled firewall services check (osbuild/image-builder#1471)
    * Author: Sanne Raymaekers, Reviewers: Achilleas Koutsou, Tomáš Hozza

— Somewhere on the Internet, 2025-04-29

---
thozza pushed a commit to osbuild/osbuild-composer that referenced this pull request Apr 29, 2025
tag v0.140.0
Tagger: imagebuilder-bot <[email protected]>

Changes with 0.140.0

----------------
  * Loader part override followups (osbuild/image-builder#1466)
    * Author: Michael Vogt, Reviewers: Tomáš Hozza
  * RHEL-10/gce: install cloud-utils-growpart by default (osbuild/image-builder#1463)
    * Author: Tomáš Hozza, Reviewers: Michael Vogt, Simon de Vlieger
  * base-host-check: expand to cover more (COMPOSER-2498) (osbuild/image-builder#1432)
    * Author: Simon de Vlieger, Reviewers: Tomáš Hozza
  * rhel8,9: move partitioning into YAML (osbuild/image-builder#1390)
    * Author: Michael Vogt, Reviewers: Tomáš Hozza

— Somewhere on the Internet, 2025-04-28

---

tag v0.141.0
Tagger: imagebuilder-bot <[email protected]>

Changes with 0.141.0

----------------
  * Shrink the current installer images a bit (osbuild/image-builder#1423)
    * Author: Brian C. Lane, Reviewers: Achilleas Koutsou, Simon de Vlieger, Tomáš Hozza
  * Update EL10 Azure images with changes made in RHEL 9.6 (osbuild/image-builder#1472)
    * Author: Achilleas Koutsou, Reviewers: Michael Vogt, Tomáš Hozza
  * distro: add DNFSetReleaseVerVar to ImageConfig (osbuild/image-builder#1465)
    * Author: Michael Vogt, Reviewers: Achilleas Koutsou, Tomáš Hozza
  * test/base-host-check.sh: fix disabled firewall services check (osbuild/image-builder#1471)
    * Author: Sanne Raymaekers, Reviewers: Achilleas Koutsou, Tomáš Hozza

— Somewhere on the Internet, 2025-04-29

---
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