grub2/0101-normal-don-t-draw-our-startup-message-if-debug-is-se.patch

28 lines
892 B
Diff
Raw Normal View History

2020-07-29 20:47:36 +08:00
From e215e2c09bc7d7e970f4b644c30a1a3818829bfb Mon Sep 17 00:00:00 2001
2019-09-30 10:52:04 -04:00
From: Peter Jones <pjones@redhat.com>
Date: Thu, 9 Nov 2017 15:58:52 -0500
2020-07-29 20:47:36 +08:00
Subject: [PATCH 101/220] normal: don't draw our startup message if debug is
set
2019-09-30 10:52:04 -04:00
---
grub-core/normal/main.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c
2020-07-29 20:47:36 +08:00
index 2fe6743..f7ee912 100644
2019-09-30 10:52:04 -04:00
--- a/grub-core/normal/main.c
+++ b/grub-core/normal/main.c
2020-07-29 20:47:36 +08:00
@@ -425,6 +425,9 @@ grub_normal_reader_init (int nested)
2019-09-30 10:52:04 -04:00
const char *msg_esc = _("ESC at any time exits.");
char *msg_formatted;
+ if (grub_env_get ("debug") != NULL)
+ return 0;
+
msg_formatted = grub_xasprintf (_("Minimal BASH-like line editing is supported. For "
"the first word, TAB lists possible command completions. Anywhere "
"else TAB lists possible device or file completions. %s"),
2020-07-29 20:47:36 +08:00
--
1.8.3.1