Bug#926037: systemd: localectl console keymap configuration delayed
Floris Bos
bos at je-eigen-domein.nl
Sun Jan 2 12:32:14 GMT 2022
On 1/2/22 12:01 PM, Michael Biebl wrote:
> On 19.12.21 00:56, Floris Bos wrote:
>
>> Yes, your Debian specific stuff in
>> debian/patches/debian/Use-Debian-specific-config-files.patch only
>> seems to set /etc/default/keyboard
>>
>> However with other Linux distributions the setting is also instantly
>> applied to console, so that is what me and other users are expecting.
>>
>>
>> With other Linux distributions this seems to be done by restarting
>> the systemd-vconsole-setup unit in src/local/localed.c
>> vconsole_reload() :
>>
>> https://github.com/systemd/systemd/blob/main/src/locale/localed.c#L97
>>
>> Think that function needs to be patched by whatever is necessary to
>> have the change do take effect on Debian (run "dpkg-reconfigure
>> keyboard-configuration" and "setupcon -k --force" ?)
>
> Currently we disable vconsole via debian/rules, so there is no
> systemd-vconsole-setup.service.
>
> Maybe a fix could be as simple as shipping a symlink
> systemd-vconsole-setup.service → keyboard-setup.service ?
> Or do we need to restart console-setup.service as well?
I recall in some cases it is also necessary to regenerate initramfs
after a keyboard settings change.
E.g. when LUKS encryption is used and the user needs to be able to enter
the password to unlock the disks in the console prior to the rest of the
system being booted.
So just restarting one of the services actually may not be enough.
Yours sincerely,
Floris Bos
More information about the Pkg-systemd-maintainers
mailing list