dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0121-normal-don-t-draw-our-startup-message-if-debug-is-se.patch

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