image-builder icon indicating copy to clipboard operation
image-builder copied to clipboard

MAAS: Support both UEFI and BIOS boot modes in setup-bootloader

Open vasartori opened this issue 6 months ago • 5 comments

Change description

Add support for both UEFI and BIOS boot modes in setup-bootloader only in MAAS Provider

This change updates the setup-bootloader script to detect the system's firmware type (UEFI or BIOS) and install the appropriate GRUB bootloader.

  • If UEFI is detected, grub-efi is configured and installed.
  • If BIOS is detected, grub-efi is removed, grub-pc is installed, and GRUB is installed to the appropriate disk.
  • Improved script comments to reflect modifications by the image-builder team.
  • Maintains compatibility with systems lacking UEFI support.

This ensures broader hardware compatibility for the generated images.

Related issues

  • Fixes #

Additional context

vasartori avatar Jun 26 '25 18:06 vasartori

/assign @vasartori @gabrielalves87

vasartori avatar Jun 26 '25 18:06 vasartori

@vasartori: GitHub didn't allow me to assign the following users: gabrielalves87.

Note that only kubernetes-sigs members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time. For more information please see the contributor guide

In response to this:

/assign @vasartori @gabrielalves87

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

k8s-ci-robot avatar Jun 26 '25 18:06 k8s-ci-robot

@gabrielalves87 Could you help me test these changes?

vasartori avatar Jun 26 '25 18:06 vasartori

/ok-to-test

vasartori avatar Jun 30 '25 14:06 vasartori

@vasartori, I ran the tests and it worked fine here!

gabrielalves87 avatar Jun 30 '25 14:06 gabrielalves87

/lgtm

vasartori avatar Jun 30 '25 14:06 vasartori

@vasartori: you cannot LGTM your own PR.

In response to this:

/lgtm

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

k8s-ci-robot avatar Jun 30 '25 14:06 k8s-ci-robot

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: AverageMarcus

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

k8s-ci-robot avatar Jun 30 '25 14:06 k8s-ci-robot

@AverageMarcus could you please approve this PR? I have tested it, and @gabrielalves87 has also tested. Everything is working fine.

vasartori avatar Jun 30 '25 14:06 vasartori

😆 Beat you to it!

Once the tests have re-run successfully it'll automatically merge :)

AverageMarcus avatar Jun 30 '25 14:06 AverageMarcus

😆 Beat you to it!

Once the tests have re-run successfully it'll automatically merge :)

😆😆😆😆😆 You were lightning-fast!

Thanks a lot Marcus!

vasartori avatar Jun 30 '25 14:06 vasartori