Repository navigation
bootc-host-setup: Add RHEL 10 support - #60
Conversation
75bed78 to
067abe6
Compare
067abe6 to
dc0841e
Compare
dc0841e to
cd9188a
Compare
Provide the shared prerequisite for moving bootc CI to stock RHEL 10 while retaining the Ubuntu runner behavior already relied upon by callers. Keep the old entry point as a deprecated compatibility layer so downstream callers can migrate independently. Assisted-by: AI Signed-off-by: Colin Walters <[email protected]>
Exercise the distro-aware entry point in this repository so its supported Ubuntu behavior remains covered while consumers migrate from the deprecated name. Assisted-by: AI Signed-off-by: Colin Walters <[email protected]>
cd9188a to
5182eba
Compare
| "$qemu_binary" --version | ||
| } | ||
|
|
||
| repair_rhel_openssh_policy() { |
There was a problem hiding this comment.
@cgwalters-bot this needs us to track as an issue here which we should eventually file upstream. Dig I had a background claim that this image is the same as the "Azure 1P image". I am skeptical of this I'm going to spin up a stock RHEL Azure to see, but you did some prior investigation on this and have reason to believe there was some stray "chmod" involved right? Find all the data on this summarize as best you can in an issue on this repo
There was a problem hiding this comment.
Tracked in #64 (evidence, the runner-images chmod -R 777 lines, what is unverified including the Azure 1P claim, and a draft upstream report).
Generated-by: https://github.com/cgwalters/#llms
The renovate runner bump in bootc-dev#61 moved the "24.04" setup job to ubuntu-26.04 too, so the PR workflow stopped exercising the 24.04 package path, which is the one most consumers still use. bootc-dev#60 put the literal ubuntu-24.04 back, which the next such bump would rewrite again. Fold the two per-release jobs into one matrix. In bootc-dev#61 Renovate only rewrote literal runs-on values and left the matrix entries in test-virtualization.yml alone, so a matrix should keep 24.04 covered. 24.04 now also gets the heredoc check that only the 26.04 job had, plus a check that the host-os output names the runner image (also on the deprecated entry point). The bwrap AppArmor check stays 26.04-only: on 24.04 bwrap runs unconfined, so there is no transition to verify. Generated-by: AI
Motivation
Provide the reusable host setup required to move bootc CI from Ubuntu to the stock GitHub-hosted RHEL 10 partner runner without breaking existing Ubuntu consumers.
Design
bootc-host-setuporchestrates small action-local scripts and declarative Ubuntu/RHEL base and libvirt package lists. It explicitly recognizes Ubuntu 24.04/26.04 and RHEL 10, preserves Ubuntu cleanup, QEMU/OVMF, KVM, and AppArmor handling, and retainsbootc-ubuntu-setupas a deprecated compatibility entry point.RHEL uses distribution Rust/Cargo, first attempts
justfrom the enabled package/EPEL repositories, then uses the checksum-verified Renovate-managed release fallback until the partner image has current EPEL content. The narrowly scoped OpenSSH crypto-policy repair only changes the expected crypto-policies-owned symlink target after the knownssh -Gdiagnostic, and keeps SELinux enforcing. The RHEL libvirt list includes the storage-core driver sovirtstoragedsupports bcvk session storage.Validation
bash -n bootc-host-setup/ci/*.sh test/bootc-host-setup.shshellcheck bootc-host-setup/ci/*.sh test/bootc-host-setup.shbash test/bootc-host-setup.shactionlint -config-file .github/actionlint.yaml .github/workflows/*.ymlgit diff --check origin/main...HEADNo bootc PR was modified.
AI disclosure
Assisted-by: AI
The shell test and action changes were AI-assisted and validated with the commands above. Human review is still required; commits intentionally have no
Signed-off-bytrailers.