2018-07-12 14:56:34 +00:00
|
|
|
From 0000000000000000000000000000000000000000 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-07-10 18:39:10 +00:00
|
|
|
Subject: [PATCH] Don't say "GNU/Linux" in generated menus.
|
2011-03-14 21:02:57 +00:00
|
|
|
|
2022-04-18 21:58:58 +00:00
|
|
|
[rharwood: say it even less]
|
2011-03-14 21:02:57 +00:00
|
|
|
---
|
2022-04-18 21:58:58 +00:00
|
|
|
grub-core/normal/main.c | 2 +-
|
|
|
|
tests/util/grub-shell-tester.in | 2 +-
|
|
|
|
tests/util/grub-shell.in | 2 +-
|
|
|
|
util/grub.d/10_linux.in | 4 ++--
|
|
|
|
util/grub.d/20_linux_xen.in | 4 ++--
|
|
|
|
5 files changed, 7 insertions(+), 7 deletions(-)
|
2011-03-14 21:02:57 +00:00
|
|
|
|
2022-04-18 21:58:58 +00:00
|
|
|
diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c
|
2024-10-18 18:18:00 +00:00
|
|
|
index 1317279c081..568c2adfa16 100644
|
2022-04-18 21:58:58 +00:00
|
|
|
--- a/grub-core/normal/main.c
|
|
|
|
+++ b/grub-core/normal/main.c
|
|
|
|
@@ -218,7 +218,7 @@ grub_normal_init_page (struct grub_term_output *term,
|
2024-10-18 18:18:00 +00:00
|
|
|
|
2022-04-18 21:58:58 +00:00
|
|
|
grub_term_cls (term);
|
|
|
|
|
|
|
|
- msg_formatted = grub_xasprintf (_("GNU GRUB version %s"), PACKAGE_VERSION);
|
|
|
|
+ msg_formatted = grub_xasprintf (_("GRUB version %s"), PACKAGE_VERSION);
|
|
|
|
if (!msg_formatted)
|
|
|
|
return;
|
2024-10-18 18:18:00 +00:00
|
|
|
|
2022-04-18 21:58:58 +00:00
|
|
|
diff --git a/tests/util/grub-shell-tester.in b/tests/util/grub-shell-tester.in
|
2024-10-18 18:18:00 +00:00
|
|
|
index 8a87109b152..9a4319d4f4f 100644
|
2022-04-18 21:58:58 +00:00
|
|
|
--- a/tests/util/grub-shell-tester.in
|
|
|
|
+++ b/tests/util/grub-shell-tester.in
|
|
|
|
@@ -56,7 +56,7 @@ for option in "$@"; do
|
|
|
|
usage
|
|
|
|
exit 0 ;;
|
|
|
|
-v | --version)
|
|
|
|
- echo "$0 (GNU GRUB ${PACKAGE_VERSION})"
|
|
|
|
+ echo "$0 (GRUB ${PACKAGE_VERSION})"
|
|
|
|
exit 0 ;;
|
|
|
|
--modules=*)
|
|
|
|
ms=`echo "$option" | sed -e 's/--modules=//'`
|
|
|
|
diff --git a/tests/util/grub-shell.in b/tests/util/grub-shell.in
|
2024-10-18 18:18:00 +00:00
|
|
|
index 496e1bab33c..e0570c88e15 100644
|
2022-04-18 21:58:58 +00:00
|
|
|
--- a/tests/util/grub-shell.in
|
|
|
|
+++ b/tests/util/grub-shell.in
|
2024-10-18 18:18:00 +00:00
|
|
|
@@ -243,7 +243,7 @@ for option in "$@"; do
|
2022-04-18 21:58:58 +00:00
|
|
|
usage
|
|
|
|
exit 0 ;;
|
|
|
|
-v | --version)
|
|
|
|
- echo "$0 (GNU GRUB ${PACKAGE_VERSION})"
|
|
|
|
+ echo "$0 (GRUB ${PACKAGE_VERSION})"
|
|
|
|
exit 0 ;;
|
|
|
|
--trim)
|
2024-10-18 18:18:00 +00:00
|
|
|
trim=1 ;;
|
2011-03-14 21:02:57 +00:00
|
|
|
diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in
|
2024-10-18 18:18:00 +00:00
|
|
|
index 00d4b220ccb..901745707f1 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
|
2024-10-18 18:18:00 +00:00
|
|
|
index 94dd8be1342..98ee5bc58dc 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
|
|
|
|
|