2018-01-17 20:40:19 +00:00
|
|
|
From 5fe2c767d1ec50986c7a54dbdc826e0e2947ac29 Mon Sep 17 00:00:00 2001
|
2011-03-14 21:02:57 +00:00
|
|
|
From: Peter Jones <pjones@redhat.com>
|
|
|
|
Date: Mon, 14 Mar 2011 14:27:42 -0400
|
2018-01-17 20:40:19 +00:00
|
|
|
Subject: [PATCH 145/225] Don't say "GNU/Linux" in generated menus.
|
2011-03-14 21:02:57 +00:00
|
|
|
|
|
|
|
---
|
2013-05-02 20:54:52 +00:00
|
|
|
util/grub.d/10_linux.in | 4 ++--
|
|
|
|
util/grub.d/20_linux_xen.in | 4 ++--
|
2011-03-14 21:02:57 +00:00
|
|
|
2 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
|
2017-06-16 19:31:32 +00:00
|
|
|
index f3bf6acd8..ef52cf3db 100644
|
2011-03-14 21:02:57 +00:00
|
|
|
--- a/util/grub.d/10_linux.in
|
|
|
|
+++ b/util/grub.d/10_linux.in
|
2013-05-02 20:54:52 +00:00
|
|
|
@@ -29,9 +29,9 @@ export TEXTDOMAINDIR="@localedir@"
|
2011-03-14 21:02:57 +00:00
|
|
|
CLASS="--class gnu-linux --class gnu --class os"
|
|
|
|
|
|
|
|
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
|
|
|
|
- OS=GNU/Linux
|
2012-04-26 18:18:21 +00:00
|
|
|
+ OS="$(sed 's, release .*$,,g' /etc/system-release)"
|
2011-03-14 21:02:57 +00:00
|
|
|
else
|
|
|
|
- OS="${GRUB_DISTRIBUTOR} GNU/Linux"
|
2012-04-26 18:18:21 +00:00
|
|
|
+ OS="${GRUB_DISTRIBUTOR}"
|
2014-01-06 16:39:16 +00:00
|
|
|
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
|
2011-03-14 21:02:57 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
|
2018-01-17 20:40:19 +00:00
|
|
|
index 0cb0f4e49..b184fc904 100644
|
2011-03-14 21:02:57 +00:00
|
|
|
--- a/util/grub.d/20_linux_xen.in
|
|
|
|
+++ b/util/grub.d/20_linux_xen.in
|
2013-05-02 20:54:52 +00:00
|
|
|
@@ -29,9 +29,9 @@ export TEXTDOMAINDIR="@localedir@"
|
2011-03-14 21:02:57 +00:00
|
|
|
CLASS="--class gnu-linux --class gnu --class os --class xen"
|
|
|
|
|
|
|
|
if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
|
|
|
|
- OS=GNU/Linux
|
2012-04-26 18:18:21 +00:00
|
|
|
+ OS="$(sed 's, release .*$,,g' /etc/system-release)"
|
2011-03-14 21:02:57 +00:00
|
|
|
else
|
|
|
|
- OS="${GRUB_DISTRIBUTOR} GNU/Linux"
|
2012-04-26 18:18:21 +00:00
|
|
|
+ OS="${GRUB_DISTRIBUTOR}"
|
2014-01-06 16:39:16 +00:00
|
|
|
CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1|LC_ALL=C sed 's,[^[:alnum:]_],_,g') ${CLASS}"
|
2011-03-14 21:02:57 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
--
|
2018-01-17 20:40:19 +00:00
|
|
|
2.14.3
|
2011-03-14 21:02:57 +00:00
|
|
|
|