From: Mario Limonciello Date: Mon, 13 Jan 2014 12:13:14 +0000 (+0000) Subject: Don't add suffix to the distributor string X-Git-Tag: archive/raspbian/2.14_git20250718.0e36779-2+rpi1^2~59 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ff55ae980fe670161f1c14200af2e383677a08b5;p=grub2.git Don't add suffix to the distributor string - Ubuntu is called "Ubuntu", not "Ubuntu GNU/Linux" - Debian already has the suffix in `/etc/os-release` Author: Colin Watson Author: Harald Sitter Author: Mate Kukri Forwarded: not-needed Last-Update: 2024-11-05 Patch-Name: mkconfig-distributor.patch Gbp-Pq: Name mkconfig-distributor.patch --- diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in index ec362d7..19a2251 100644 --- a/util/grub.d/10_linux.in +++ b/util/grub.d/10_linux.in @@ -32,7 +32,14 @@ CLASS="--class gnu-linux --class gnu --class os" if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then OS=GNU/Linux else - OS="${GRUB_DISTRIBUTOR} GNU/Linux" + case ${GRUB_DISTRIBUTOR} in + Ubuntu|*GNU/Linux) + OS="${GRUB_DISTRIBUTOR}" + ;; + *) + OS="${GRUB_DISTRIBUTOR} GNU/Linux" + ;; + esac CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}" fi