1 From d4bd41f972c6e22b86c773cbba2a1e14f400a8be Mon Sep 17 00:00:00 2001
2 From: Peter Jones <pjones@redhat.com>
3 Date: Mon, 14 Mar 2011 14:27:42 -0400
4 Subject: [PATCH] Don't say "GNU/Linux" in generated menus.
7 util/grub.d/10_linux.in | 4 ++--
8 util/grub.d/20_linux_xen.in | 4 ++--
9 2 files changed, 4 insertions(+), 4 deletions(-)
11 diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
12 index a09c3e6..0b0df78 100644
13 --- a/util/grub.d/10_linux.in
14 +++ b/util/grub.d/10_linux.in
15 @@ -29,9 +29,9 @@ export TEXTDOMAINDIR=@localedir@
16 CLASS="--class gnu-linux --class gnu --class os"
18 if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
20 + OS="$(sed 's, release .*$,,g' /etc/system-release)"
22 - OS="${GRUB_DISTRIBUTOR} GNU/Linux"
23 + OS="${GRUB_DISTRIBUTOR}"
24 CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1) ${CLASS}"
27 diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in
28 index ee49cd9..10422b0 100644
29 --- a/util/grub.d/20_linux_xen.in
30 +++ b/util/grub.d/20_linux_xen.in
31 @@ -29,9 +29,9 @@ export TEXTDOMAINDIR=@localedir@
32 CLASS="--class gnu-linux --class gnu --class os --class xen"
34 if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
36 + OS="$(sed 's, release .*$,,g' /etc/system-release)"
38 - OS="${GRUB_DISTRIBUTOR} GNU/Linux"
39 + OS="${GRUB_DISTRIBUTOR}"
40 CLASS="--class $(echo ${GRUB_DISTRIBUTOR} | tr 'A-Z' 'a-z' | cut -d' ' -f1) ${CLASS}"