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

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