Bug#1107875: trixie version of GRUB_DISTRIBUTOR generates wrong titles

Paul Slootman paul at debian.org
Mon Jun 16 13:44:45 BST 2025


Package: grub2-common
Version: 2.12-7
Severity: minor

On a freshly upgraded bookworm -> trixie system, the GRUB_DISTRIBUTOR
command in /etc/default/grub:

GRUB_DISTRIBUTOR=`( . /etc/os-release; echo ${NAME:-Debian} ) 2>/dev/null || echo Debian`

causes menuentry lines like

menuentry 'Debian GNU/Linux GNU/Linux' ....

The double "GNU/Linux" looks really bad.


The old line in bookworm was:

GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`

which generated just "Debian" (with or without lsb_release available).

So either don't add "GNU/Linux" to the menuentry lines in the script, or
use the ID line in /etc/os-release which is just "Debian".


Thanks,
Paul



More information about the Pkg-grub-devel mailing list