summaryrefslogtreecommitdiffstats
path: root/src/shared/kbd-util.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* kbd-util: allow to override the default keymap directoriesYu Watanabe2024-03-141-6/+2
| | | | | | | | | | | | | | This introduces $SYSTEMD_KEYMAP_DIRECTORIES environment variable to override the hardcoded keymap directories. I think it is not necessary to provide the first class configuration option for controlling the keymap directories, but it is not good to hardcode the paths. So, let's introduce an environment variable to override that. Prompted by #31759. Closes #31759.
* Drop split-usr and unmerged-usr supportLuca Boccassi2023-07-281-8/+0
| | | | | | | | | | As previously announced, execute order 66: https://lists.freedesktop.org/archives/systemd-devel/2022-September/048352.html The meson options split-usr, rootlibdir and rootprefix become no-ops that print a warning if they are set to anything other than the default values. We can remove them in a future release.
* localed: refuse to set a keymap which is not installedZbigniew Jędrzejewski-Szmek2021-03-041-0/+1
| | | | | | | | | | | | | | | | | | | In https://bugzilla.redhat.com/show_bug.cgi?id=1933873 a keymap was set without the package that provides it being installed (it2 is in kbd-legacy, which is not installed by default). Setting a non-installed keymap is problematic, because it results in nasty failures afterward (*). So let's to the same as e.g. for locale data, and refuse a setting if the definition doesn't exists in the filesystem. The implementation using nftw() is not the most efficient, but I think it's OK in this case. This is definitely not in any kind of hot path, and I prefer not to duplicate the filename manipulation logic in a second function. (*) If the keymap is not found, vconsole-setup.service will fail. dracut-cmdline-ask.service has Requires=vconsole-setup.service, so it will also fail, and this breaks boot. dracut-cmdline-ask.service having a hard dependency is appropriate though: we sadly don't display what the keymap is, and with a wrong keymap, any attempts to enter a password are likely to fail.
* Move basic/kbd-util to shared/Zbigniew Jędrzejewski-Szmek2021-03-041-0/+20
It is (or should be used) in localectl, localed, and a few other places, no reason to keep it in basic/.