Skip to content

boot VMs with UEFI GSoC#56613

Merged
dwoz merged 1 commit intosaltstack:masterfrom
gqlo:uefi-boot
Apr 13, 2020
Merged

boot VMs with UEFI GSoC#56613
dwoz merged 1 commit intosaltstack:masterfrom
gqlo:uefi-boot

Conversation

@gqlo
Copy link
Contributor

@gqlo gqlo commented Apr 12, 2020

What does this PR do?

This PR adds support boot VMs with UEFI.

What issues does this PR fix or reference?

Fixes: a bug on removing existing boot parameters

Previous Behavior

Removing an existing boot parameters by passing an None object would fail. ElementTree.remove(parent_tag, tag) because ElementTree does not have a remove attribute.
Apart from that, we also need to make sure None object will not be passed to check_remote(orig_boot.get(key))

New Behavior

User is expected to specify loader and nvram with the corresponding firmware path to boot the VM with UEFI. For instance:

- boot:
     loader: /usr/share/OVMF/OVMF_CODE.fd
     nvram: /usr/share/OVMF/OVMF_VARS.ms.fd

To remove existing boot parameters, pass None object instead.

- boot:
     kernel: None
     initrd: None

Docs & changelog written?

Yes

  • Docs
  • Changelog

Tests written?

[NOTICE] Bug fixes or features added to Salt require tests.
Please review the test documentation for details on how to implement tests into Salt's test suite.

Yes

Commits signed with GPG?

Yes

Please review Salt's Contributing Guide for best practices.

See GitHub's page on GPG signing for more information about signing commits with GPG.

@gqlo gqlo marked this pull request as ready for review April 12, 2020 05:39
@gqlo gqlo requested a review from a team as a code owner April 12, 2020 05:39
@ghost ghost requested a review from garethgreenaway April 12, 2020 05:39
@gqlo gqlo force-pushed the uefi-boot branch 3 times, most recently from 5d94cd1 to 9107877 Compare April 12, 2020 06:33
Copy link
Contributor

@dwoz dwoz left a comment

Choose a reason for hiding this comment

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

@MeAndTheFirefly Nice work, thanks for the contribution.

@dwoz dwoz merged commit 6a41478 into saltstack:master Apr 13, 2020
@gqlo
Copy link
Contributor Author

gqlo commented Apr 13, 2020

@MeAndTheFirefly Nice work, thanks for the contribution.
Thanks. :)

@cbosdo cbosdo mentioned this pull request Apr 24, 2020
@gqlo gqlo mentioned this pull request May 22, 2020
3 tasks
@gqlo gqlo changed the title add support to boot VMs with UEFI add support to boot VMs with UEFI GSoC Aug 6, 2020
@gqlo gqlo changed the title add support to boot VMs with UEFI GSoC boot VMs with UEFI GSoC Aug 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants