Skip to content

Commit

Permalink
Merge pull request #102 from SUSE-Enceladus/hybridBoot
Browse files Browse the repository at this point in the history
Support uefi-preferred boot mode
  • Loading branch information
rjschwei committed Apr 26, 2023
2 parents 4374519 + af89c0a commit e27c743
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 5 additions & 3 deletions ec2uploadimg
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,13 @@ def parse_args(args):
help='AWS kernel ID (aki) to boot the new image (Optional)',
metavar='AWS_AKI_ID'
)
help_msg = 'Set the boot mode for the image, legacy-bios, uefi, '
help_msg += 'or uefi-preferred (Optional)'
parser.add_argument(
'--boot-mode',
dest='bootMode',
help='Set the boot mode for the image, legacy-bios or uefi (Optional)',
choices=['', 'legacy-bios', 'uefi'],
help=help_msg,
choices=['', 'legacy-bios', 'uefi', 'uefi-preferred'],
metavar='BOOT_MODE'
)
parser.add_argument(
Expand Down Expand Up @@ -430,7 +432,7 @@ def check_tpm_support_has_allowed_boot_options(args, logger):
"""This function checks that in case tpm is enabled, boot options are
correct
"""
tpm_boot_options = ['uefi']
tpm_boot_options = ['uefi', 'uefi-preferred']
if args.tpm and args.bootMode not in tpm_boot_options:
logger.error(
'TPM can only be set with --boot-mode set to %s' % str(
Expand Down
2 changes: 1 addition & 1 deletion lib/ec2imgutils/VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.0.1
10.0.2
6 changes: 3 additions & 3 deletions python3-ec2imgutils.spec
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@
%define upstream_name ec2imgutils

Name: python3-ec2imgutils
Version: 10.0.1
Version: 10.0.2
Release: 0
Summary: Image management utilities for AWS EC2
License: GPL-3.0+
Group: System/Management
Url: https://github.com/SUSE-Enceladus/ec2imgutils
Source0: %{upstream_name}-%{version}.tar.bz2
Requires: python3
Requires: python3-boto3 >= 1.22.11
Requires: python3-boto3 >= 1.29.84
Requires: python3-dateutil
Requires: python3-paramiko
BuildRequires: python3-boto3 >= 1.22.11
BuildRequires: python3-boto3 >= 1.29.84
BuildRequires: python3-dateutil
BuildRequires: python3-setuptools
BuildRequires: python-rpm-macros
Expand Down

0 comments on commit e27c743

Please sign in to comment.