Comment 93 for bug 1842320

Revision history for this message
jeremyszu (os369510) wrote :

Hi renton,

If you want to build it by yourself, then you should clone this:
https://people.canonical.com/~jeremysu/lp1842320/

and built it locally and don't clear the build environment, you can found the efi binary on "obj/monolithic/grub-efi-amd64/grubx64.efi". I personally use pbuilder with some hooks when debugging.

Alternatively, I upload the binary built by me on
https://people.canonical.com/~jeremysu/lp1842320/grubx64.efi.lp1842320v2
and for sure, the efi binary relates to security, then build it by yourself makes sense (but TBH it's not easy as other packages.)

If you want to give it a try, then I suggest don't replace the original efi binary.
Instead, you can use something like

efibootmgr -c -L 'lp1842320' -d ${u-r-boot-dev} -p ${partition} -l '\EFI\ubuntu\grubx64.efi.lp1842320v2'

for example:
efibootmgr -c -L 'lp1842320' -d /dev/vda -p 2 -l '\EFI\ubuntu\grubx64.efi.lp1842320v2'

and use something like
'efibootmgr -n ${your-boot-order-of-lp1842320}'

or press F9 on HP machine
or press F12 on Lenovo machine

Please only do that if you know what you are doing.