Blame SOURCES/0118-Don-t-say-GNU-Linux-in-generated-menus.patch

f731ee
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
f731ee
From: Peter Jones <pjones@redhat.com>
f731ee
Date: Mon, 14 Mar 2011 14:27:42 -0400
f731ee
Subject: [PATCH] Don't say "GNU/Linux" in generated menus.
f731ee
f731ee
---
f731ee
 util/grub.d/10_linux.in     | 4 ++--
f731ee
 util/grub.d/20_linux_xen.in | 4 ++--
f731ee
 2 files changed, 4 insertions(+), 4 deletions(-)
f731ee
f731ee
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
f731ee
index 600bfd29dc7..c943a1e403e 100644
f731ee
--- a/util/grub.d/10_linux.in
f731ee
+++ b/util/grub.d/10_linux.in
f731ee
@@ -29,9 +29,9 @@ export TEXTDOMAINDIR="@localedir@"
f731ee
 CLASS="--class gnu-linux --class gnu --class os"
f731ee
 
f731ee
 if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
f731ee
-  OS=GNU/Linux
f731ee
+  OS="$(sed 's, release .*$,,g' /etc/system-release)"
f731ee
 else
f731ee
-  OS="${GRUB_DISTRIBUTOR} GNU/Linux"
f731ee
+  OS="${GRUB_DISTRIBUTOR}"
f731ee
   CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
f731ee
 fi
f731ee
 
f731ee
diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
f731ee
index a60843500ed..79d4e38d643 100644
f731ee
--- a/util/grub.d/20_linux_xen.in
f731ee
+++ b/util/grub.d/20_linux_xen.in
f731ee
@@ -29,9 +29,9 @@ export TEXTDOMAINDIR="@localedir@"
f731ee
 CLASS="--class gnu-linux --class gnu --class os --class xen"
f731ee
 
f731ee
 if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
f731ee
-  OS=GNU/Linux
f731ee
+  OS="$(sed 's, release .*$,,g' /etc/system-release)"
f731ee
 else
f731ee
-  OS="${GRUB_DISTRIBUTOR} GNU/Linux"
f731ee
+  OS="${GRUB_DISTRIBUTOR}"
f731ee
   CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
f731ee
 fi
f731ee