Commit 7ba6547
committed
grub-efi: add support for build without shim
In `meta-signing-key/classes/user-key-store.bbclass` file, there is already
an implementation of sb_sign() function with support for both scerarions:
- bootloader is verified by shim_cert.crt
- shim is not used, and DB.crt is used to verify bootloader directly
but when building with MOK_SB ?= "0", grub is being build as `grub(ia32/x64).efi`
and with shim_lock support enabled.
Disabling shim_lock for running secure boot without shim fixes the issue:
error: ../../grub-core/kern/efi/sb.c:180:shim_lock protocol not found.
during boot.
Disabling renaming of grub efi into `grubx64.efi` leaves it, as it is in
EFI_BOOT_IMAGE variable, set in `yocto/openembedded-core/meta/conf/image-uefi.conf`,
as this will be our first efi boot file.
Signed-off-by: Piotr Łobacz <[email protected]>1 parent dca45d8 commit 7ba6547
File tree
1 file changed
+2
-2
lines changed- meta-efi-secure-boot/recipes-bsp/grub
1 file changed
+2
-2
lines changedLines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | | - | |
| 51 | + | |
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
| |||
0 commit comments