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

Bug#977466: rootskel: bterm cannot start when requesting graphical console and serial console at the same time



Control: clone -1 -2
Control: reassign -2 lowmem
Control: retitle -2 lowmem: delete graphical terminal related files in lawmen state
Control: merge -1 -2

Hi,

Then I believe the following patch will remove unnecessary files when the
memory is not enough.

From 87f728f9abe07bae1586a5815c7dcda407035c83 Mon Sep 17 00:00:00 2001
From: Miao Wang <shankerwangmiao@gmail.com>
Date: Wed, 16 Dec 2020 00:46:35 +0800
Subject: [PATCH] Delete graphical terminal related files when mem is low

We delete those files here because lowmem_debconf is invoked in
debian-installer-startup and only one instance of it is started,
preventing any race conditions where multiple instances of
debian-installer are started on multiple consoles.
---
 lowmem_debconf | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/lowmem_debconf b/lowmem_debconf
index 54b9c6e..36b6f0d 100755
--- a/lowmem_debconf
+++ b/lowmem_debconf
@@ -17,3 +17,6 @@ done
 db_set debian-installer/framebuffer false || true
 db_set debian-installer/locale "C" || true
 db_fset debian-installer/locale seen true
+
+rm -f /usr/bin/bterm
+rm -f /lib/unifont.bgf
-- 
2.20.1


> 2020年12月15日 23:04,Samuel Thibault <sthibault@debian.org> 写道:
> 
> Wang Shanker, le mar. 15 déc. 2020 22:59:52 +0800, a ecrit:
>> Thanks for your response. In `S15lowmem`, I can see the limit for the
>> memory is around tens or hundreds of megabytes. The font file, however,
>> is only around 200K. I doubt the necessity of removing it. 
> 
> 200K+200K+200K+... in various packages, ends up getting a few
> megabytes. So yes, it does make a difference in the end.
> 
>> Just to confirm, if the font must be deleted, shall we add the rm into
>> https://salsa.debian.org/installer-team/lowmem/-/blob/master/lowmem_debconf ?
> 
> Yes (it seems I pointed you at the installed path instead of the source,
> indeed :) )
> 
> Samuel


Reply to: