[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 everyone,

Thanks for tracking down why the strange vt102 thing happens, and why it
mostly happens/was mostly reported on arm64 hardware… The patch below
(or further variations should there be any) looks mergeable to me.

Emanuele Rocca <ema@debian.org> (2023-06-01):
> 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

Indentation looks sketchy :)

> +       # colors, utf-8, etc.
> +       TERM=linux
> +fi
> +

Do we have other ttys than just tty1 that people might want to switch
to, and that might benefit from a similar adjustment? In any case, I'd
assume people can just use screen's windows to get more consoles, so it
might not matter…


Cheers,
-- 
Cyril Brulebois (kibi@debian.org)            <https://debamax.com/>
D-I release manager -- Release team member -- Freelance Consultant

Attachment: signature.asc
Description: PGP signature


Reply to: