mirror of
https://github.com/token2/snapd.git
synced 2026-03-13 11:15:47 -07:00
Upstream grub does not pass to LoadImage the correct path to the loaded binary. This results in second grub not knowing where it was loaded from and loading the wrong grub.cfg. If we set "root", then the path becomes correct. Currently in mantic, the Ubuntu patch that used to be applied to 2.06 is not applied to 2.12. So we are we are back to upstream behavior. The common use case for chainloading in EFI with grub (see 30_os-prober) always sets root. So we should do it and not get broken again.
Edition 1 of grub.cfg and grub-recovery.cfg imported from https://github.com/snapcore/pc-amd64-gadget, commit:
commit e4d63119322691f14a3f9dfa36a3a075e941ec9d (HEAD -> 20, origin/HEAD, origin/20)
Merge: b70d2ae d113aca
Author: Dimitri John Ledkov <xnox@ubuntu.com>
Date: Thu May 7 19:30:00 2020 +0100
Merge pull request #47 from xnox/production-keys
gadget: bump edition to 2, using production signing keys for everything.