dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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