canonical / pc-gadget

The gadget snap for Personal Computers using 64bit Intel or AMD processors
GNU General Public License v3.0
31 stars 73 forks source link

22 Support shim fallback bootchain #106

Open olivercalder opened 1 year ago

olivercalder commented 1 year ago

This PR adds fallback shim and grub EFI assets to EFI/ubuntu/, while leaving non-fallback assets in EFI/BOOT/.

This is part of larger work on the snapd side to explicitly set EFI boot variables on install, thus no longer relying on default EFI boot behavior, which can be affected by such things as attaching external media.

The corresponding snapd PR is:

For those internal to Canonical, the spec related to this work can be found at:

This is a revival of previous PRs which sought to add shim fallback support:

Similar changes should be ported to core24, and perhaps backported to core20 as well (likely not core18 or core16, though).

mwhudson commented 1 year ago

This doesn't build because fb$arch.efi and mm$arch.efi get deleted in snapcraft.yaml, is that expected?