nalika / rpms / grub2

Forked from rpms/grub2 2 years ago
Clone

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

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