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

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