Blame SOURCES/0148-Don-t-clear-screen-when-debugging-is-enabled.patch

8e15ce
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
8e15ce
From: =?UTF-8?q?Renaud=20M=C3=A9trich?= <rmetrich@redhat.com>
8e15ce
Date: Sat, 23 Nov 2019 16:23:54 +0100
8e15ce
Subject: [PATCH] Don't clear screen when debugging is enabled
8e15ce
MIME-Version: 1.0
8e15ce
Content-Type: text/plain; charset=UTF-8
8e15ce
Content-Transfer-Encoding: 8bit
8e15ce
8e15ce
Signed-off-by: Renaud Métrich <rmetrich@redhat.com>
b35c50
[rharwood@redhat.com: rebase fuzz]
b35c50
Signed-off-by: Robbie Harwood <rharwood@redhat.com>
8e15ce
---
b35c50
 grub-core/normal/main.c | 5 +++--
b35c50
 1 file changed, 3 insertions(+), 2 deletions(-)
8e15ce
8e15ce
diff --git a/grub-core/normal/main.c b/grub-core/normal/main.c
b35c50
index af9792c963..7de9e4c36d 100644
8e15ce
--- a/grub-core/normal/main.c
8e15ce
+++ b/grub-core/normal/main.c
b35c50
@@ -215,8 +215,9 @@ grub_normal_init_page (struct grub_term_output *term,
b35c50
   char *msg_formatted;
b35c50
   grub_uint32_t *unicode_msg;
b35c50
   grub_uint32_t *last_position;
b35c50
- 
8e15ce
-  grub_term_cls (term);
b35c50
+
8e15ce
+  if (! grub_debug_is_enabled ())
8e15ce
+    grub_term_cls (term);
8e15ce
 
b35c50
   msg_formatted = grub_xasprintf (_("GRUB version %s"), PACKAGE_VERSION);
b35c50
   if (!msg_formatted)