[systemd-devel] localization of console

Jason St. John jstjohn at purdue.edu
Wed Jun 18 13:06:20 PDT 2014


On Wed, Jun 18, 2014 at 12:19 PM, Alexey Shabalin <a.shabalin at gmail.com> wrote:
> Hello.
>
> I do not understand how the should work localization of console.
> - systemd-vconsole-setup.service for an early boot (for enter password
> in cryptsetup? but people do not used non-latin letters for password)
>
> - getty at .service contains TTYReset=yes (or
> https://bugzilla.redhat.com/show_bug.cgi?id=972635  but i use
> kernel-3.14.6), and all  previous font and kbd settings reseted
>
> I see package workaround-cyrillic-console in Russian Fedora:
> https://github.com/RussianFedora/workaround-cyrillic-console
> contain unit setup-cyrfont at .service:
>
> After=getty@%i.service
> BindsTo=getty@%i.service
> Requires=getty@%i.service
> IgnoreOnIsolate=yes
> [Service]
> ExecStart=/usr/bin/setfont -C /dev/%i latarcyrheb-sun16
> Type=oneshot
>
> For ALTLinux i was add systemd-vconsole-setup at .service unit:
>
> After=getty@%i.service
> BindsTo=getty@%i.service
> Requires=getty@%i.service
> IgnoreOnIsolate=yes
> [Service]
> Type=oneshot
> ExecStart=/lib/systemd/systemd-vconsole-setup /dev/%i
>
>
> May be exist better way for localization?
>
>
> --
> Alexey Shabalin

What Linux distribution are you using?

On my Arch Linux systems, I configured the font and keymap (keyboard
layout) in /etc/vconsole.conf, and for the initial RAM disk, I put the
"consolefont" and "keymap" hooks before the "encrypt" hook in
/etc/mkinitcpio.conf. This lets me use an alternate keyboard layout
for entering the encryption passphrase. I think something similar to
this is what you are looking for, but adapted to whichever Linux
distribution you are using.

Jason


More information about the systemd-devel mailing list