#721139 grub2-common: allow case-aware bootloader IDs

Package:
grub2-common
Source:
grub2
Description:
GRand Unified Bootloader (common files for version 2)
Submitter:
IOhannes m zmoelnig
Date:
2025-11-30 13:13:04 UTC
Severity:
wishlist
#721139#5
Date:
2013-08-28 12:45:22 UTC
From:
To:
Dear Maintainer,
i'm using grub2 on an EFI system, that dual-boots into w32.

now grub installs a new EFI entry named "debian".

given that all other EFI entries are either all upper-case (e.g. "USB FDD:") or
mixed case (e.g. "Windows Boot Manager"), the lower-case "debian" sticks out a
little bit in an unpleasant way.
the reason seems to be the line
in /urs/sbin/grub-install.

Whenever you find time, it would be nice if you would allow the bootloader ID to
contained mixed cases (and eventually even spaces).
e.g. by adding another variable to /etc/default/grub, like
 BOOTLOADER_ID="Debian/GNU"
that would override the automatically generated bootloader_id.

fmadr
IOhannes

#721139#10
Date:
2025-11-30 13:05:38 UTC
From:
To:
Dear Maintainer,

I'd love to get a BOOTLOADER_ID config option too.
My use case is to install multiple debian versions in parallel,
including their own grub version.

This can be useful when upgrading a remote system (without remote
console) from say debian12 to debian13 with minimal risk and minimal
downtime:

There could be two distinct partitions for /boot and / Debian12 uses one
set of those partitions, debian13 the other. When the debian13 install
is done, use "efibootmgr --bootnext" to boot into debian13 and reboot.

In case this fails to boot, a watchdog (or human) can powercycle the
system and it will boot into debian12 again. Otherwise if the new system
works, use "efibootmgr --bootorder" to change the order permanently.

My current workaround is to configure apt (DPkg::Path) to include
/usr/local/sbin which contains a simple wrapper script for grub-install
that appends to --bootloader-id=xxxx param.

Thanks
Jörn