config_language: rely on console-setup for keyboard + font handling
authorMichael Prokop <mika@grml.org>
Sat, 29 Dec 2018 14:31:54 +0000 (15:31 +0100)
committerMichael Prokop <mika@grml.org>
Sat, 29 Dec 2018 15:17:55 +0000 (16:17 +0100)
commitfc67c1849a4eed7c2c0586dd65d77cec7d053768
tree5455c38a26ded82869edb0ef9ce546b7e68f8eab
parent8be7a425a159fc46cdaea4291e42a2dad909b47f
config_language: rely on console-setup for keyboard + font handling

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 (see commit
c820a66a69). 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).

Instead when running under systemd rely on console-setup, by assuming
/etc/default/console-setup is set up as needed (implemented in grml-live
>=0.33.4) and adjusting /etc/default/keyboard according to
keyboard=.../lang=... boot options. Finally we invoke the console-setup
service.  (We might want to handle this outside of grml-autoconfig in
the future, but this approach for now guarantees to execute this in the
right order and not spit on the console at the end of the boot process).

Closes: grml/grml-autoconfig#9, grml/grml#50
Thanks: Darshaka Pathirana for debugging this
autoconfig.functions