Bandie/grub2-signing-extension

Issue with overwriting .sig and resigning .efi

Closed this issue · 8 comments

Hi, thanks for your work. I am running Archlinux with UEFI secure mode. Currently I have two issues:

  1. The script will generate *.sig files and try to overwrite them again for signing purpose. I have to answer yes for each overwriting individually otherwise it will create a new rename file for each *.sig.
  2. As /boot/EFI/grub/*.efi has been signed for security boot mode, should the script exclude *.efi to avoid double signing?

Hey,

  1. Which script are you talking about?
  2. I have barely experience in having EFI. If you say that this script should exclude them, we could do that.

To 1.: This sounds like it couldn't delete the old signatures before creating the new ones.. Do you run it as root?
To 2.: I'll look into that then.

hmh.. can you tell me which signature files exactly it tries to overwrite?

Right now grub-sign signs every file in /boot. This is a script you use only once per grub-install.
If you do kernel upgrades, one should run grub-update-kernel-signature as it removes /boot/*.sig and resigns it.