Package: ovmf
Version: 2022.05-2
Severity: normal
X-Debbugs-Cc:
robert.sc...@sap.com
Dear Maintainer,
I'm trying to test an image creation mechanism by booting the resulting
image with QEMU with Secure Boot enforced. Unfortunately, the
OVMF_VARS*.ms.fd seems to define a boot order where the EFI shell is
placed before the disk.
In other words, I land in an EFI shell when I try to boot. This only
happens for the .ms.fd files; the OVMF_{CODE,VARS}_4M.fd directly boot
the attached disk.
I can change the boot order manually, save a new vars file and then boot
from the disk using that vars file. However that was not quite easy for
me to find out, I would appreciate if the secure-boot-enforcing and
non-enforcing files could behave similarly with regards to the boot order.
My qemu invocation:
qemu-system-x86_64 \
-machine q35 \
-global ICH9-LPC.disable_s3=1 \
-nodefaults \
-nographic \
-drive if=pflash,format=raw,unit=0,readonly=on,file=/usr/share/OVMF/OVMF_CODE_4M.ms.fd \
-drive if=pflash,format=raw,unit=1,readonly=on,file=/usr/share/OVMF/OVMF_VARS_4M.ms.fd \
-drive file=image.qcow2,media=disk,index=1 \
-serial mon:stdio
I'm not sure why the -machine and -global options are needed but I guess
that's an unrelated issue.
I've tested this in a container but I guess that shouldn't change the
behaviour.
Thank you very much for your maintenance of the OVMF package,
Robert
-- System Information:
Debian Release: bookworm/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 5.10.102.1-microsoft-standard-WSL2 (SMP w/16 CPU threads)
Locale: LANG=C, LC_CTYPE=C.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /bin/dash
Init: unable to detect
-- no debconf information