Bug#908200: grub-efi-*-signed: mismatch between /EFI/vendor (used) and /EFI/debian (expected) when derivative uses unmodified Debian binary packages

Raphael Hertzog hertzog at debian.org
Fri Sep 7 14:57:48 BST 2018


Control: tags -1 + patch

On Fri, 07 Sep 2018, Raphaël Hertzog wrote:
> The problem seems to come down to the fact that during initial installation,
> (at least) when the install picks the new *-signed packages, they get
> installed to /EFI/kali but the binary installed inside is actually
> expecting the configuration file in /EFI/debian/grub.cfg.

I'm attaching a possible patch. I checked that the package builds, but I
did not test the resulting package.

Since the EFI image hardcodes the patch in the EFI partition, I modified
/etc/default/grub to contain GRUB_BOOTLOADER_ID initialized with the
value of SB_EFI_VENDOR coming from debian/rules. grub-install has been
patched to initialize the default value of its --bootloader-id parameter
with this variable.

I opted to not modify GRUB_DISTRIBUTOR since this contains the
user-visible name of the derivative and we want to keep that obviously.

Cheers,

PS: I pushed my branch here too: https://salsa.debian.org/hertzog/grub
-- 
Raphaël Hertzog ◈ Debian Developer

Support Debian LTS: https://www.freexian.com/services/debian-lts.html
Learn to master Debian: https://debian-handbook.info/get/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Store-the-EFI-vendor-in-GRUB_BOOTLOADER_ID-in-etc-de.patch
Type: text/x-diff
Size: 2778 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-grub-devel/attachments/20180907/d1777ae1/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Update-changelog.patch
Type: text/x-diff
Size: 918 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-grub-devel/attachments/20180907/d1777ae1/attachment-0001.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Initialize-bootloader_id-from-config-with-a-dedicate.patch
Type: text/x-diff
Size: 5302 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-grub-devel/attachments/20180907/d1777ae1/attachment-0002.patch>


More information about the Pkg-grub-devel mailing list