Bug#925309: Wrong prefix directory hardcoded in signed GRUB image
Pascal Hambourg
pascal at plouf.fr.eu.org
Fri Dec 23 20:31:38 GMT 2022
Control: reassign -1 grub-efi-amd64-bin
Control: tags -1 patch
On 13/12/2022 at 16:00, Pascal Hambourg wrote:
> On 24/03/2019 at 01:10, Colin Watson wrote:
>>
>> Possibly. The prefix parameter given to grub-mkimage's -p option has to
>> be an actual path, not a variable reference. In order to make it use
>> $cmdpath, we'd need another one of the arrangements we use for some of
>> the other pre-built images to use a config file embedded in a memdisk.
> An initial config file (memdisk)/grub.cfg is now embedded in the signed
> core image along with the font file.
> 1) If /EFI/debian/grub.cfg exists, it is still used even if
> /EFI/<id>/grub.cfg also exists. This is an issue when installing
> multiple instances of GRUB for different Debian systems if one has the
> default <id>="debian". Is it conceivable to reverse the order and use
> $cmdpath/grub.cfg first ?
Patch attached.
The config file embedded in the normal disk boot image was obviously
designed for the CD boot image. This patch uses a separate config file
which searches in $cmdpath then $prefix.
> 2) The file /EFI/<id>/BOOT${ARCH}.CSV always contains the name "debian"
> regardless of the identifier <id> specified by --bootloader-id on the
> grub-install command line or $GRUB_DISTRIBUTOR in /etc/default/grub.
I will look into this next.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Make-normal-disk-boot-image-search-grub.cfg-in-cmdpa.patch
Type: text/x-patch
Size: 2271 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-grub-devel/attachments/20221223/468e6def/attachment.bin>
More information about the Pkg-grub-devel
mailing list