]> git.proxmox.com Git - grub2.git/commitdiff
Remove GNU/Linux from default distributor string for Ubuntu
authorMario Limonciello <Mario_Limonciello@dell.com>
Mon, 13 Jan 2014 12:13:14 +0000 (12:13 +0000)
committerColin Watson <cjwatson@debian.org>
Tue, 9 Jul 2019 10:42:34 +0000 (11:42 +0100)
Ubuntu is called "Ubuntu", not "Ubuntu GNU/Linux".

Author: Colin Watson <cjwatson@debian.org>
Author: Harald Sitter <apachelogger@kubuntu.org>
Forwarded: not-needed
Last-Update: 2013-12-25

Patch-Name: mkconfig-ubuntu-distributor.patch

util/grub.d/10_linux.in

index 0509ac6809a65b8e807ca34f01b2c7c4d9c95bf6..fd87a124dd72528592717e9c7aecc6c375dd0723 100644 (file)
@@ -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|Kubuntu)
+      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