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
b35c50
[rharwood: say it even less]
8e15ce
---
b35c50
 grub-core/normal/main.c         | 2 +-
b35c50
 tests/util/grub-shell-tester.in | 2 +-
b35c50
 tests/util/grub-shell.in        | 2 +-
b35c50
 util/grub.d/10_linux.in         | 4 ++--
b35c50
 util/grub.d/20_linux_xen.in     | 4 ++--
b35c50
 5 files changed, 7 insertions(+), 7 deletions(-)
8e15ce
b35c50
diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c
b35c50
index 7ca2e5400b..98372217ad 100644
b35c50
--- a/grub-core/normal/main.c
b35c50
+++ b/grub-core/normal/main.c
b35c50
@@ -218,7 +218,7 @@ grub_normal_init_page (struct grub_term_output *term,
b35c50
  
b35c50
   grub_term_cls (term);
b35c50
 
b35c50
-  msg_formatted = grub_xasprintf (_("GNU GRUB  version %s"), PACKAGE_VERSION);
b35c50
+  msg_formatted = grub_xasprintf (_("GRUB version %s"), PACKAGE_VERSION);
b35c50
   if (!msg_formatted)
b35c50
     return;
b35c50
  
b35c50
diff --git a/tests/util/grub-shell-tester.in b/tests/util/grub-shell-tester.in
b35c50
index 8a87109b15..9a4319d4f4 100644
b35c50
--- a/tests/util/grub-shell-tester.in
b35c50
+++ b/tests/util/grub-shell-tester.in
b35c50
@@ -56,7 +56,7 @@ for option in "$@"; do
b35c50
 	usage
b35c50
 	exit 0 ;;
b35c50
     -v | --version)
b35c50
-	echo "$0 (GNU GRUB ${PACKAGE_VERSION})"
b35c50
+	echo "$0 (GRUB ${PACKAGE_VERSION})"
b35c50
 	exit 0 ;;
b35c50
     --modules=*)
b35c50
 	ms=`echo "$option" | sed -e 's/--modules=//'`
b35c50
diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in
b35c50
index 93e9f51484..ec1182bf93 100644
b35c50
--- a/tests/util/grub-shell.in
b35c50
+++ b/tests/util/grub-shell.in
b35c50
@@ -209,7 +209,7 @@ for option in "$@"; do
b35c50
 	usage
b35c50
 	exit 0 ;;
b35c50
     -v | --version)
b35c50
-	echo "$0 (GNU GRUB ${PACKAGE_VERSION})"
b35c50
+	echo "$0 (GRUB ${PACKAGE_VERSION})"
b35c50
 	exit 0 ;;
b35c50
     --trim)
b35c50
 	trim=1
8e15ce
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
b35c50
index dc75a1c30b..4a499c53a6 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
b35c50
index 3b1f470492..ada20775a1 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