Set up Unicode/UTF8 and console fonts via console-setup
authorMichael Prokop <mika@grml.org>
Sat, 29 Dec 2018 14:17:25 +0000 (15:17 +0100)
committerMichael Prokop <mika@grml.org>
Sat, 29 Dec 2018 15:02:14 +0000 (16:02 +0100)
commit3a054970e50af430d7473ccc55b1a1a25115d867
tree426128dcd6004483f21394be5f9ebc4bffe32a34
parent24598264b7c2b9d79fc4464d817a595697f71aab
Set up Unicode/UTF8 and console fonts via console-setup

Our old approach with running loadkeys, setting console font and
invoking unicode_start via grml-autoconfig is incomplete for nowadays'
environments.

We tried to fix that by changing the order in which we set up the fonts,
runnning loadkeys and finally invoking unicode_start via grml-autoconfig
(see: grml/grml-autoconfig@c820a66). But this changed only the behavior
on tty1, the other consoles still had problems when trying to display
unicode characters (see e.g. `systemctl status` output).

The proper solution is to configure /etc/default/console-setup as needed
(doing this with this change) and rely on console-setup afterwards to do the right
thing (implemented within grml-autoconfig).

With this change we ship a default /etc/default/console-setup via
GRMLBASE, which can be customized as needed by users of grml-live
through separate FAI class files.

Explicitely added console-setup to GRMLBASE since we rely on it
nowadays.

Thanks: Michael Schierl (@schierlm) + @qlplq for feedback and Darshaka Pathirana for debugging this and providing a preliminary PR
Closes: grml/grml-autoconfig#9, grml/grml#50
Relates to: grml/grml#101
etc/grml/fai/config/files/etc/default/console-setup/GRMLBASE [new file with mode: 0644]
etc/grml/fai/config/package_config/GRMLBASE
etc/grml/fai/config/scripts/GRMLBASE/26-console-setup [new file with mode: 0755]