]> git.proxmox.com Git - grub2.git/blame - debian/patches/mkconfig-ubuntu-distributor.patch
bump version to 2.06-13+pmx2
[grub2.git] / debian / patches / mkconfig-ubuntu-distributor.patch
CommitLineData
fa3f0da1 1From 84938bc37ee1cfabf84915ad4b6c8904b4770ef6 Mon Sep 17 00:00:00 2001
0cdf09fd
CW
2From: Mario Limonciello <Mario_Limonciello@dell.com>
3Date: Mon, 13 Jan 2014 12:13:14 +0000
4Subject: Remove GNU/Linux from default distributor string for Ubuntu
5
6Ubuntu is called "Ubuntu", not "Ubuntu GNU/Linux".
7
55f01c0a 8Author: Colin Watson <cjwatson@debian.org>
4c8b510c 9Author: Harald Sitter <apachelogger@kubuntu.org>
55f01c0a 10Forwarded: not-needed
98225b3c 11Last-Update: 2013-12-25
55f01c0a 12
8be00ff3 13Patch-Name: mkconfig-ubuntu-distributor.patch
0cdf09fd
CW
14---
15 util/grub.d/10_linux.in | 9 ++++++++-
16 1 file changed, 8 insertions(+), 1 deletion(-)
17
18diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
fa3f0da1 19index f215e3213..1603a75a7 100644
55f01c0a
CW
20--- a/util/grub.d/10_linux.in
21+++ b/util/grub.d/10_linux.in
0cdf09fd 22@@ -32,7 +32,14 @@ CLASS="--class gnu-linux --class gnu --class os"
55f01c0a
CW
23 if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
24 OS=GNU/Linux
25 else
26- OS="${GRUB_DISTRIBUTOR} GNU/Linux"
4c8b510c
CW
27+ case ${GRUB_DISTRIBUTOR} in
28+ Ubuntu|Kubuntu)
29+ OS="${GRUB_DISTRIBUTOR}"
30+ ;;
31+ *)
32+ OS="${GRUB_DISTRIBUTOR} GNU/Linux"
33+ ;;
34+ esac
6c6996fe 35 CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
55f01c0a
CW
36 fi
37