fgrose / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone
31004e6
From ef989ba63d43f7a44bc89d685cffd024eb18d273 Mon Sep 17 00:00:00 2001
31004e6
From: Peter Jones <pjones@redhat.com>
31004e6
Date: Mon, 14 Mar 2011 14:27:42 -0400
f74b50e
Subject: [PATCH 442/482] Don't say "GNU/Linux" in generated menus.
31004e6
31004e6
---
31004e6
 util/grub.d/10_linux.in     | 4 ++--
31004e6
 util/grub.d/20_linux_xen.in | 4 ++--
31004e6
 2 files changed, 4 insertions(+), 4 deletions(-)
31004e6
31004e6
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
31004e6
index 0724e16..368f609 100644
31004e6
--- a/util/grub.d/10_linux.in
31004e6
+++ b/util/grub.d/10_linux.in
31004e6
@@ -29,9 +29,9 @@ export TEXTDOMAINDIR="@localedir@"
31004e6
 CLASS="--class gnu-linux --class gnu --class os"
31004e6
 
31004e6
 if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
31004e6
-  OS=GNU/Linux
31004e6
+  OS="$(sed 's, release .*$,,g' /etc/system-release)"
31004e6
 else
31004e6
-  OS="${GRUB_DISTRIBUTOR} GNU/Linux"
31004e6
+  OS="${GRUB_DISTRIBUTOR}"
31004e6
   CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1) ${CLASS}"
31004e6
 fi
31004e6
 
31004e6
diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
31004e6
index 6651cbc..4372c0c 100644
31004e6
--- a/util/grub.d/20_linux_xen.in
31004e6
+++ b/util/grub.d/20_linux_xen.in
31004e6
@@ -29,9 +29,9 @@ export TEXTDOMAINDIR="@localedir@"
31004e6
 CLASS="--class gnu-linux --class gnu --class os --class xen"
31004e6
 
31004e6
 if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
31004e6
-  OS=GNU/Linux
31004e6
+  OS="$(sed 's, release .*$,,g' /etc/system-release)"
31004e6
 else
31004e6
-  OS="${GRUB_DISTRIBUTOR} GNU/Linux"
31004e6
+  OS="${GRUB_DISTRIBUTOR}"
31004e6
   CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1) ${CLASS}"
31004e6
 fi
31004e6
 
31004e6
-- 
31004e6
1.8.2.1
31004e6