mirror of
https://git.proxmox.com/git/efi-boot-shim
synced 2025-08-13 17:43:04 +00:00
Fall back to MokManager if grub failed to validate
If we can't verify grub, fall back to MokManager. This permits shipping a copy of shim and MokManager without distributing a key, letting distributions provide their own for user installation.
This commit is contained in:
parent
d991c4a178
commit
8cf182af8b
6
shim.c
6
shim.c
@ -1019,8 +1019,10 @@ EFI_STATUS init_grub(EFI_HANDLE image_handle)
|
||||
efi_status = start_image(image_handle, SECOND_STAGE);
|
||||
|
||||
if (efi_status != EFI_SUCCESS) {
|
||||
Print(L"Failed to start grub\n");
|
||||
goto done;
|
||||
if (efi_status == EFI_ACCESS_DENIED)
|
||||
efi_status = start_image(image_handle, MOK_MANAGER);
|
||||
else
|
||||
Print(L"Failed to start grub\n");
|
||||
}
|
||||
done:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user