]> git.ipfire.org Git - people/stevee/ipfire-3.x.git/blob - grub/patches/grub-1.99-just-say-linux.patch
grub: Update to 2.00.
[people/stevee/ipfire-3.x.git] / grub / patches / grub-1.99-just-say-linux.patch
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.
5
6 ---
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(-)
10
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"
17
18 if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
19 - OS=GNU/Linux
20 + OS="$(sed 's, release .*$,,g' /etc/system-release)"
21 else
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}"
25 fi
26
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"
33
34 if [ "x${GRUB_DISTRIBUTOR}" = "x" ] ; then
35 - OS=GNU/Linux
36 + OS="$(sed 's, release .*$,,g' /etc/system-release)"
37 else
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}"
41 fi
42
43 --
44 1.7.4
45