Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 474946 - sys-apps/systemd - localectl does not find keymaps
Summary: sys-apps/systemd - localectl does not find keymaps
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo systemd Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-27 08:10 UTC by Markus Rathgeb
Modified: 2013-07-31 22:24 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Rathgeb 2013-06-27 08:10:54 UTC
localectl list-keymaps (and set-keymap) will not work.
A list-keymaps will result in:
"Couldn't find any console keymaps."

As you can see at
http://cgit.freedesktop.org/systemd/systemd/plain/src/locale/localectl.c
the function
static int list_vconsole_keymaps(DBusConnection *bus, char **args, unsigned n)
looks for keymaps in the following directories:
"/usr/share/kbd/keymaps/"
"/usr/lib/kbd/keymaps/"
"/lib/kbd/keymaps/"

Gentoo is using "/usr/share/keymaps" to store the files.

Is this place more or less correct than the other ones?
This upstream add the directory to their list?

If I am using something similar to
mkdir -p /usr/share/kbd/keymaps
mount -t none -o bind /usr/share/keymaps /usr/share/kbd/keymaps
all is working fine.

Could we find a solution, so systemd users could use localectl as expected.

Reproducible: Always
Comment 1 Franz Trischberger 2013-06-27 09:36:09 UTC
Might this also be the reason why I still need to use locale-env-file? I followed the systemd-guide, but never got working locale with only /etc/locale.conf
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-06-30 08:24:10 UTC
AFAICS we're using the standard install locations [1] while Fedora is explicitly changing it to /lib/kbd [2].

@base-system, please confirm. I'll move the bug upstream then.

[1]:http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/sys-apps/kbd/kbd-1.15.5-r1.ebuild?view=markup#l42
[2]:http://pkgs.fedoraproject.org/cgit/kbd.git/tree/kbd.spec#n99
Comment 3 SpanKY gentoo-dev 2013-06-30 18:31:17 UTC
(In reply to Michał Górny from comment #2)

yes, we're using the default (and long common) location of /usr/share/keymaps/

the irony wrt systemd and /usr merge is palpable
Comment 4 Pacho Ramos gentoo-dev 2013-07-20 14:54:40 UTC
Maybe we could patch it in the meantime :/
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-07-20 15:05:05 UTC
Feel free to. And please attach a patch upstream as well.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-07-31 22:24:55 UTC
Patched in 206-r1 that I have just committed.