dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

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