-
Notifications
You must be signed in to change notification settings - Fork 25
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
Add uefi boot support to compose data [RHELDST-18235] #356
Merged
Merged
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# A pushsource library testcase. | ||
# | ||
# This file was generated from a template. | ||
# To regenerate, run test_baseline.py with PUSHSOURCE_UPDATE_BASELINE=1. | ||
|
||
# URL of Source to test. | ||
url: "staged:{{ src_dir }}/tests/staged/data/simple_ami_with_uefi" | ||
|
||
# Push items generated from above. | ||
items: | ||
- AmiPushItem: | ||
billing_codes: null | ||
build: null | ||
build_info: null | ||
description: A sample image for testing | ||
dest: | ||
- dest1 | ||
ena_support: true | ||
image_id: null | ||
marketplace_entity_type: null | ||
md5sum: null | ||
name: fake-image.raw | ||
origin: {{ src_dir }}/tests/staged/data/simple_ami_with_uefi | ||
public_image: true | ||
recommended_instance_type: null | ||
region: cn-north-1 | ||
release: | ||
arch: x86_64 | ||
base_product: null | ||
base_version: null | ||
date: 2020-05-11 | ||
product: Fake-Product | ||
respin: 1 | ||
type: ga | ||
variant: Fake-Variant | ||
version: Fake-Version | ||
release_notes: null | ||
root_device: /dev/sda1 | ||
scanning_port: null | ||
security_groups: [] | ||
sha256sum: null | ||
signing_key: null | ||
src: {{ src_dir }}/tests/staged/data/simple_ami_with_uefi/dest1/AWS_IMAGES/fake-image.raw | ||
sriov_net_support: simple | ||
state: PENDING | ||
type: access | ||
uefi_support: true | ||
usage_instructions: null | ||
user_name: null | ||
version_title: null | ||
virtualization: hvm | ||
volume: gp2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
header: | ||
version: "0.2" | ||
|
||
payload: | ||
files: | ||
- relative_path: dest1/AWS_IMAGES/fake-image.raw | ||
attributes: | ||
description: "A sample image for testing" | ||
ena_support: true | ||
region: cn-north-1 | ||
release: | ||
arch: x86_64 | ||
base_product: null | ||
base_version: null | ||
date: "20200511" | ||
product: Fake-Product | ||
respin: 1 | ||
type: ga | ||
variant: Fake-Variant | ||
version: Fake-Version | ||
root_device: /dev/sda1 | ||
sriov_net_support: simple | ||
type: access | ||
uefi_support: true | ||
virtualization: hvm | ||
volume: gp2 | ||
public_image: true |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amcmahon-rh It is not such simple boolean value.
Image builder provides additional metadata in koji build e.g.
aarch64 obviously has to use uefi. But with x86_64 it should try uefi but it can do fallback
in AWS terminology, it is 3 state: "uefi-preferred", "legacy-bios" and "uefi"
And one cannot achieve that with boolean in cloudimg
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @lslebodn, I don't quite understand, could you elaborate please?
I understand that AWS requires specific string values. The idea of using a boolean was to keep the value abstract up to the point where we actually interact with AWS, rather than passing string values around different libraries.
Would this be resolved by having a second boolean? One for uefi and one for bios support?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@amcmahon-rh there are 4 possible ways for adding "BootMode" for image.
a) missing option "BootMode"
b) one of following values: uefi, legacy-bios, or uefi-preferred as it is described in AWS documentation(https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ami-boot-mode.html)
And we cannot achieve it with current with current "type=bool".
Because based on value of boolean cloudimg can use either "uefi-preferred" or "legacy-bios"
For aarch64 images, "uefi-preferred" is not ideal. It should be either "uefi" or the "BootMode" should not be specified at all when uploading image as it was before this change