[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#856929: initramfs-tools: Please add option to clear screen at the beginning



Package: initramfs-tools
Version: 0.127
Severity: normal
Tags: patch

Hi,

When using the initramfs for kdump, the screen might already contain
text. Without clearing the screen, the output of the initramfs will
overwrite the screen only partially with old text staying on the screen.

Thus please add a kernel option 'clear' to clear the screen at the
beginning (patch for 0.127 attached).

-- 
Benjamin Drung
System Developer
Debian & Ubuntu Developer

ProfitBricks GmbH
Greifswalder Str. 207
D - 10405 Berlin

Email: benjamin.drung@profitbricks.com
URL:  http://www.profitbricks.com

Sitz der Gesellschaft: Berlin.
Registergericht: Amtsgericht Charlottenburg, HRB 125506B.
Geschäftsführer: Andreas Gauger, Achim Weiss.
>From e1e2a654d33d2fd58f4f5039552102c1d3d8dc93 Mon Sep 17 00:00:00 2001
From: Benjamin Drung <benjamin.drung@profitbricks.com>
Date: Mon, 6 Mar 2017 11:39:05 +0100
Subject: [PATCH] Add option to clear screen at the beginning

When using the initramfs for kdump, the screen might already contain
text. Without clearing the screen, the output of the initramfs will
overwrite the screen only partially with old text staying on the screen.
Thus add a kernel option 'clear' to clear the screen at the beginning.
---
 init | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/init b/init
index 9552e5c..be370c7 100755
--- a/init
+++ b/init
@@ -13,6 +13,10 @@ mkdir -p /var/lock
 mount -t sysfs -o nodev,noexec,nosuid sysfs /sys
 mount -t proc -o nodev,noexec,nosuid proc /proc
 
+if grep -qw clear /proc/cmdline; then
+	clear
+fi
+
 case " $(cat /proc/cmdline) " in
 *\ quiet\ *)
 	quiet=y
-- 
2.9.3


Reply to: