Bug#969714: systemd-localed creates /etc/vconsole.conf file when modifying keyboard layouts

Michael Biebl biebl at debian.org
Mon Sep 7 09:56:21 BST 2020


Hi Roderich

Am 07.09.20 um 09:58 schrieb Roderich Schupp:
> Package: systemd
> Version: 246.4-1
> Severity: normal
> Tags: patch
> X-Debbugs-Cc: roderich.schupp at gmail.com
> 
> I added some keyboard layouts with gnome-control-center (tab "Region &
> Language",
> "Input sources") and then found a file /etc/vconsole.conf, though Debian
> disables the vconf stuff in systemd. The file seems to persist after removing
> it and rebooting, but otherwise appears to be harmless.
> 
> The file is actually generated by systemd-localed (invoked by
> dbus from gnome-control-center), so you could probably achieve the same
> effect by running localectl.
> 
> I've attached a patch to make vconsole_{read,write}_data a no-op.

Thanks for the patch.
Related to that, there is
- systemd: Please enable systemd-vconsole
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=803970
- console setup integration
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=608457

And
https://salsa.debian.org/systemd-team/systemd/-/blob/debian/master/debian/patches/debian/Use-Debian-specific-config-files.patch

Ideally, I would want us to move to the native, systemd config files for
/etc/locale.conf and also /etc/vconsole.conf

This would need someone, pushing that change forward.

For the time being, it probably makes sense, if the vconsole part of
localed becomes a noop or is changed to write to
/etc/default/console-setup. The latter is preferrable, but requires a
more elaborate patch.

If we simply make those functions a nop, we should at least log a
warning message though (and maybe return an error), so users of localed
will notice, that changing those settings has no effect.
Would you be interested in working on that?

Michael


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20200907/402b6250/attachment.sig>


More information about the Pkg-systemd-maintainers mailing list