Skip to content

feat(grub2): disable Xen module builds#16466

Merged
reubeno merged 1 commit intotomls/base/mainfrom
chrco/remove-xen-grub2
Apr 6, 2026
Merged

feat(grub2): disable Xen module builds#16466
reubeno merged 1 commit intotomls/base/mainfrom
chrco/remove-xen-grub2

Conversation

@christopherco
Copy link
Copy Markdown
Collaborator

Azure Linux targets Hyper-V/KVM, not Xen. The upstream grub.macros enables with_xen_arch and with_xen_pvh_arch on x86_64, producing grub2-xen-x64-modules and grub2-xen_pvh-i386-modules subpackages.

Force both to 0 via file-search-replace overlays on grub.macros. Verified: build succeeds and no Xen module subpackages are produced.

Azure Linux targets Hyper-V/KVM, not Xen. The upstream grub.macros
enables with_xen_arch and with_xen_pvh_arch on x86_64, producing
grub2-xen-x64-modules and grub2-xen_pvh-i386-modules subpackages.

Force both to 0 via file-search-replace overlays on grub.macros.
Verified: build succeeds and no Xen module subpackages are produced.
@christopherco christopherco marked this pull request as ready for review April 6, 2026 05:07
Copilot AI review requested due to automatic review settings April 6, 2026 05:07
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

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 disables Xen-specific GRUB2 module subpackage builds in Azure Linux by overriding upstream grub.macros defaults, aligning GRUB2 packaging with Azure Linux’s Hyper-V/KVM focus and avoiding unnecessary Xen module outputs.

Changes:

  • Add a dedicated grub2.comp.toml with file-search-replace overlays to force with_xen_arch and with_xen_pvh_arch to 0.
  • Remove the bare grub2 entry from components.toml now that grub2 has a dedicated component definition file.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
base/comps/grub2/grub2.comp.toml Introduces overlays that disable Xen module builds by editing grub.macros during source prep.
base/comps/components.toml Drops the generic grub2 entry to avoid duplicate/ambiguous component definitions once the dedicated file exists.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@reubeno reubeno merged commit f170384 into tomls/base/main Apr 6, 2026
9 checks passed
@reubeno reubeno deleted the chrco/remove-xen-grub2 branch April 6, 2026 22:17
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