]> git.ipfire.org Git - thirdparty/grub.git/commit
efi: Set shim_lock_enabled even if validation is disabled
authorJulian Andres Klode <julian.klode@canonical.com>
Tue, 21 Nov 2023 17:09:59 +0000 (18:09 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 5 Dec 2023 14:28:39 +0000 (15:28 +0100)
commite60015f574024584e43d1b3b245551e864aa8c4d
treeea51f1c53dca66d2061a7ddf06c38fafc1794c97
parente35683317ec56fc21b00700f17ad62dc599929b5
efi: Set shim_lock_enabled even if validation is disabled

If validation has been disabled via MokSbState, secure boot on the
firmware is still enabled, and the kernel fails to boot.

This is a bit hacky, because shim_lock is not *fully* enabled, but
it triggers the right code paths.

Ultimately, all this will be resolved by shim gaining it's own image
loading and starting protocol, so this is more a temporary workaround.

Fixes: 6425c12cd (efi: Fallback to legacy mode if shim is loaded on x86 archs)
Cc: Peter Jones <pjones@redhat.com>
Cc: Michael Chang <mchang@suse.com>
Signed-off-by: Julian Andres Klode <julian.klode@canonical.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/efi/sb.c