Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mantle: Clean up firmware handling #3200

Merged
merged 1 commit into from
Nov 30, 2022
Merged

Conversation

cgwalters
Copy link
Member

Prep for switching the default to UEFI on x86_64 in #3159

  • Move the logic for default firmware into the constructor
  • Fix various places that were overriding it with the empty string
  • Return errors instead of panic on unknown firmware

Prep for switching the default to UEFI on x86_64 in
coreos#3159

- Move the logic for default firmware into the constructor
- Fix various places that were overriding it with the empty string
- Return errors instead of panic on unknown firmware
@cgwalters
Copy link
Member Author

Rebased 🏄

@jlebon jlebon enabled auto-merge (rebase) November 30, 2022 14:49
case "aarch64":
defaultFirmware = "uefi"
default:
defaultFirmware = ""
Copy link
Member

Choose a reason for hiding this comment

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

do we know what the string is for ppc64le and s390x?

Copy link
Member Author

Choose a reason for hiding this comment

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

There isn't one today. It's our own code that translates e.g. uefi into corresponding qemu options.

Copy link
Member

@dustymabe dustymabe left a comment

Choose a reason for hiding this comment

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

LGTM

@jlebon jlebon merged commit ea9f022 into coreos:main Nov 30, 2022
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.

None yet

3 participants