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