Skip to content

Conversation

@Dvergatal
Copy link
Contributor

This pull request fixes some minor issues with additional changes like:

  • removes unneeded patch for disabling shim_lock and lockdown
  • fixes build for GRUB_SIGN_VERIFY without shim
  • moves grub-efi secure boot dependencies into conditionals of grub-efi's package RDEPENDS
Disabling inside lockdown and shim_lock verifieirs with patch is unneeded,
as there is already a `--disable-shim-lock`[1] option, which should be used
instead.

[1] https://www.gnu.org/software/grub/manual/grub/html_node/UEFI-secure-boot-and-shim.html

Signed-off-by: Piotr Łobacz <[email protected]>
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]>
Packages like shim, seloader etc. are currently being installed always,
as packages listed in `packagegroup-efi-secure-boot.bb`.

Instead of installing them for each scheme, they should be installed
conditionally, as run dependencies of grub-efi package.

Signed-off-by: Piotr Łobacz <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

1 participant