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

Bug#1036952: rootskel: text installs on aarch64 lack glyphs for many languages



Hi,

On 2023-05-31 05:46, Samuel Thibault wrote:
> I'd rather see a patch like
> 
> if [ "$TERM" = vt102 -a `tty` = /dev/tty1 ] ; then
> 	# Busybox's init uses a global TERM across all consoles.
>         # If the serial console is the default such as on arm64, that
>         # will force vt102 on the Linux VT. Fix this back so we get
> 	# colors, utf-8, etc.
> 	TERM=linux
> fi
> 
> (to be tested etc.)

The following patch works. I've built a netboot image with patched rootskel,
see attached screenshots for before and after the cure.

diff -Nur rootskel-1.135/src/lib/debian-installer.d/S40term-linux /home/ema/debian/rootskel-1.135+nmu1/src/lib/debian-installer.d/S40term-linux
--- rootskel-1.135/src/lib/debian-installer.d/S40term-linux     2011-01-20 01:05:16.000000000 +0100
+++ /home/ema/debian/rootskel-1.135+nmu1/src/lib/debian-installer.d/S40term-linux       2023-06-01 15:05:32.514361854 +0200
@@ -1,5 +1,13 @@
 export LANG=C

+if [ "$TERM" = vt102 -a `tty` = /dev/tty1 ] ; then
+       # Busybox's init uses a global TERM across all consoles.
+        # If the serial console is the default such as on arm64, that
+        # will force vt102 on the Linux VT. Fix this back so we get
+       # colors, utf-8, etc.
+       TERM=linux
+fi
+
 if [ "$TERM" = linux ] ; then
        if [ "$TERM_TYPE" = virtual ]; then
                echo -ne "\033[9;0]" # Turn off console blanking.

Attachment: no-patch.png
Description: PNG image

Attachment: term-linux-patch.png
Description: PNG image


Reply to: