]> git.ipfire.org Git - thirdparty/dracut.git/commit
i18n: Always install /etc/vconsole.conf
authorMikhail Novosyolov <m.novosyolov@rosalinux.ru>
Sun, 19 Apr 2020 13:32:41 +0000 (16:32 +0300)
committerHarald Hoyer <harald@hoyer.xyz>
Mon, 20 Apr 2020 13:37:28 +0000 (15:37 +0200)
commitde34ba76e579dd11202f632ecf8c625f841646e1
tree0bdb378dd0215bd48219bfed97ce2ed0a5cecaab
parent8e1a4dc5f8a777fc718db490414ffdc9dc755f66
i18n: Always install /etc/vconsole.conf

/etc/vconsole.conf must be installed always, even in generic initrds, not only host-only ones.
systemd-vconsole-setup is run at initrd stage and expects either /etc/vconsole.conf or kernel cmdline options to exist.

I have also proposed a change in systemd-vconsole-setup that makes it behave better if /etc/vconsole.conf does not exist:
https://github.com/systemd/systemd/pull/15479
But it is just a fallback. If /etc/vconsole.conf does not exist in initrd and if that patch is applied on systemd,
then the default consoel font is set despite the one being set in /etc/vconsole.conf and this setting is inherited
when new TTYs are opened. This leads to full ignorance of settings in /etc/vconsole.conf.
It is incorrect, and that is why this file must be copied to initrds always, but not only on host-only initrds.

Fixes: https://github.com/dracutdevs/dracut/issues/796
Signed-off-by: Mikhail Novosyolov <m.novosyolov@rosalinux.ru>
modules.d/10i18n/module-setup.sh