diff options
| author | Christian Breunig <christian@breunig.cc> | 2026-10-16 17:25:14 +0000 |
|---|---|---|
| committer | Christian Breunig <christian@breunig.cc> | 2026-10-17 12:55:26 +0200 |
| commit | 5b0aa8b2b3ab6b2a5898ff3d66d734042c75884a (patch) | |
| tree | c90df6fdadc2cd16885b43f3f70aacdac5064d03 /scripts | |
| parent | f5a1e8334f772225d9e3ccdab45f6884cec28e59 (diff) | |
| download | vyos-build-5b0aa8b2b3ab6b2a5898ff3d66d734042c75884a.tar.gz vyos-build-5b0aa8b2b3ab6b2a5898ff3d66d734042c75884a.zip | |
Testsuite: T861: wait for UEFI setup menu before disabling Secure Boot
toggleUEFISecureBoot() slept a fixed 10 seconds after pressing F2 before
sending the menu navigation keys. On hosts where OVMF needs longer to come
up with SMM and Secure Boot enabled (about 16s here) the key presses were
sent while the firmware still showed its logo and got lost, so Secure Boot
stayed enabled and GRUB failed with 'prohibited by secure boot policy'.
Wait for the firmware to start the setup application (UiApp) on the serial
console instead.
Diffstat (limited to 'scripts')
| -rwxr-xr-x | scripts/check-qemu-install | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/check-qemu-install b/scripts/check-qemu-install index 49cd3d54..8d58c8fc 100755 --- a/scripts/check-qemu-install +++ b/scripts/check-qemu-install @@ -554,7 +554,10 @@ def toggleUEFISecureBoot(c): c.send(KEY_F2) time.sleep(0.250) - time.sleep(10) + # Wait for the firmware to start the setup application - the time this + # takes differs between hosts, a fixed delay would lose the key presses + c.expect(r'BdsDxe: starting Boot0000 "UiApp"', timeout=120) + time.sleep(5) # Device Manager UEFIKeyPress(c, KEY_DOWN) |
