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