How to make grubx64.efi for secure boot?

Asked by Steve Si

I want to make a bootable USB drive that will boot with Secure Boot enabled (preferably both 32-bit and 64-bit if possible).
I want to change the default grub.cfg path and also add some modules such as cpuid, regexp, loopback, read and probe (if possible).

I can compile a version of grubx64.efi, but it does not work using the bootx64.efi shim in Secure Boot mode.
How can I 'sign' my grubx64.efi file so it boots with Secure Boot enabled like the current version?
I see grub-mkimage accepts a -pubkey parameter - do I need a .key file and how do I get one?
There is also a sbsign command - do I need to use this?
I have searched for days and cannot find any clue on how to do this?

Question information

Language:
English Edit question
Status:
Expired
For:
Ubuntu grub2 Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Launchpad Janitor (janitor) said :
#1

This question was expired because it remained in the 'Open' state without activity for the last 15 days.