* Fri Dec 06 2024 Jon Maloy <jmaloy@redhat.com> - 20220126gitbb1bba3d77-13.el8.7

- edk2-redhat-Fix-ovmf-vars-generator-RH-only.patch [RHEL-66236]
- Resolves: RHEL-66236
  ([Regression] HTTP Boot fails to work with edk2-ovmf-20231122-6.el9_4.2 and greater [rhel-8.10])
This commit is contained in:
Jon Maloy 2024-12-06 16:44:39 -05:00
parent 3c76f16083
commit ab5e6a198b
2 changed files with 25 additions and 19 deletions

View File

@ -7,7 +7,7 @@ ExclusiveArch: x86_64 aarch64
Name: edk2
Version: %{GITDATE}git%{GITCOMMIT}
Release: 13%{?dist}.6
Release: 13%{?dist}.7
Summary: UEFI firmware for 64-bit virtual machines
Group: Applications/Emulators
License: BSD-2-Clause-Patent and OpenSSL and MIT
@ -840,6 +840,11 @@ true
%endif
%changelog
* Fri Dec 06 2024 Jon Maloy <jmaloy@redhat.com> - 20220126gitbb1bba3d77-13.el8.7
- edk2-redhat-Fix-ovmf-vars-generator-RH-only.patch [RHEL-66236]
- Resolves: RHEL-66236
([Regression] HTTP Boot fails to work with edk2-ovmf-20231122-6.el9_4.2 and greater [rhel-8.10])
* Fri Nov 29 2024 Jon Maloy <jmaloy@redhat.com> - 20220126gitbb1bba3d77-13.el8.6
- edk2-OvmfPkg-Rerun-dispatcher-after-initializing-virtio-r.patch [RHEL-66188]
- Resolves: RHEL-66188

View File

@ -46,6 +46,7 @@ def generate_qemu_cmd(args, readonly, *extra_args):
args.qemu_binary,
'-machine', machinetype,
'-display', 'none',
'-no-reboot',
'-no-user-config',
'-nodefaults',
'-m', '768',
@ -104,20 +105,18 @@ def enroll_keys(args):
stdout=subprocess.PIPE,
stderr=subprocess.STDOUT)
logging.info('Performing enrollment')
# Wait until the UEFI shell starts (first line is printed)
read = p.stdout.readline()
if b'char device redirected' in read:
read = p.stdout.readline()
# Skip passed QEMU warnings, like the following one we see in Ubuntu:
# qemu-system-x86_64: warning: TCG doesn't support requested feature: CPUID.01H:ECX.vmx [bit 5]
while b'qemu-system-x86_64: warning:' in read:
while True:
read = p.stdout.readline()
if args.print_output:
print(strip_special(read), end='')
print()
# Send the escape char to enter the UEFI shell early
p.stdin.write(b'\x1b')
p.stdin.flush()
# due to line buffering this actually waits until the 5 sec
# delay is over and the efi shell is ready to accept input.
if b'Press' in read:
break
#
# And then run the following three commands from the UEFI shell:
# change into the first file system device; install the default
# keys and certificates, and reboot
@ -127,11 +126,13 @@ def enroll_keys(args):
p.stdin.flush()
while True:
read = p.stdout.readline()
if args.print_output:
if args.print_output and len(read):
print('OUT: %s' % strip_special(read), end='')
print()
if b'info: success' in read:
break
elif b'Reset with <null string>' in read:
break
p.wait()
if args.print_output:
print(strip_special(p.stdout.read()), end='')
@ -157,7 +158,7 @@ def test_keys(args):
logging.info('Performing verification')
while True:
read = p.stdout.readline()
if args.print_output:
if args.print_output and len(read):
print('OUT: %s' % strip_special(read), end='')
print()
if b'Secure boot disabled' in read:
@ -212,9 +213,9 @@ def parse_args():
help='Fedora version to get kernel for checking',
default='27')
parser.add_argument('--kernel-url', help='Kernel URL',
default='https://download.fedoraproject.org/pub/fedora'
'/linux/releases/%(version)s/Everything/x86_64'
'/os/images/pxeboot/vmlinuz')
default='https://archives.fedoraproject.org/pub'
'/archive/fedora/linux/releases/%(version)s'
'/Everything/x86_64/os/images/pxeboot/vmlinuz')
parser.add_argument('--disable-smm',
help=('Don\'t restrict varstore pflash writes to '
'guest code that executes in SMM. Use this '