From: Mario Limonciello Date: Mon, 13 Jan 2014 12:13:14 +0000 (+0000) Subject: Remove GNU/Linux from default distributor string for Ubuntu X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=b81e9404d10f1af1715c0c5f8783d712bf5af660;p=grub2.git Remove GNU/Linux from default distributor string for Ubuntu Ubuntu is called "Ubuntu", not "Ubuntu GNU/Linux". Author: Colin Watson Author: Harald Sitter Forwarded: not-needed Last-Update: 2013-12-25 Patch-Name: mkconfig-ubuntu-distributor.patch --- diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in index 0509ac680..fd87a124d 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|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