Bug 2214130
| Summary: | Unable to set keymap to "gb" on minimal install | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Vikramsingh Patil <vikpatil> |
| Component: | systemd | Assignee: | systemd maint <systemd-maint> |
| Status: | ASSIGNED --- | QA Contact: | Frantisek Sumsal <fsumsal> |
| Severity: | low | Docs Contact: | Šárka Jana <sjanderk> |
| Priority: | low | ||
| Version: | 9.0 | CC: | eng-i18n-bugs, fkrska, gfialova, gspencer, jwright, sbarcomb, sjanderk, systemd-maint-list |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Known Issue | |
| Doc Text: |
.Setting the console `keymap` requires the `libxkbcommon` library on your minimal install
In RHEL 9, certain `systemd` library dependencies have been converted from dynamic linking to dynamic loading, so that your system opens and uses the libraries at runtime when they are available. With this change, a functionality that depends on such libraries is not available unless you install the necessary library. This also affects setting the keyboard layout on systems with a minimal install. As a result, the `localectl --no-convert set-x11-keymap gb` command fails.
To work around this problem, install the `libxkbcommon` library:
----
# dnf install libxkbcommon
----
|
Story Points: | --- |
| Clone Of: | Environment: | ||
| Last Closed: | Type: | Bug | |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Vikramsingh Patil
2023-06-12 03:32:51 UTC
Well, its not clear here which language you want to set. is it British English? if yes then you should say unable to set "en_GB" keymap. GB is neither locale nor language. I have attempted that:- localectl --no-convert set-x11-keymap en_GB Failed to set keymap: Local keyboard configuration not supported on this system. and specifying en-GB also fails on this system, just specifying "gb" has worked on all previous RHEL releases to date, EL6 / 7 / 8. I don't know why you reported your issue to ibus. You cannot reproduce your issue when ibus-daemon does not run? You can stop ibus-daemon with `ibus exit` command or im-chooser. also please refer to:- https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/9/html/configuring_basic_system_settings/assembly_changing-basic-environment-settings_configuring-basic-system-settings "section: 1.3. Configuring the keyboard layout" prescribes configuring keymaps with just the two letters, as I have always done with my previous EL5/6/7/8 installs. "I don't know why you reported your issue to ibus." - I didn't log the ticket so I'll leave that for RedHat tech support to answer/progress. (In reply to fujiwara from comment #5) > You cannot reproduce your issue when ibus-daemon does not run? > You can stop ibus-daemon with `ibus exit` command or im-chooser. Please provide the exact information if you wish to report your issue to ibus. > localectl --no-convert set-x11-keymap gb
Note that this sets the *X11* keymap, i.e. the one used by the X server. This is rather unusual on a minimal system, I would expect a call to `localectl set-keymap` instead to set the keymap used on the console. Is that what you meant to do?
Anyway, `dnf install libxkbcommon` should fix this issue. Note: libxkbcommon is in AppStream so that repository may need to get explicitly enabled if you're on a minimal install.
in addition to settiing the console keymap, I normally also set the x11 keymap the same, and there appears to have been a change in behaviour introduced with EL9, whereas this worked satisfactorily in EL5/6/7/8. I haven't seen this change in behaviour documented anywhere, not the release notes or anything, so this change is unexpected. Because while most of our servers are satisfied with a minimal install and just adding the necesssary server items, occasionally we will follow up with installation of a GUI, for example with subsequent install of Oracle. It looks wrong for a localectl to return a foreign language setting for X11 and the local language setting for console, even if X11 is not used at that stage. I'm just expecting EL9 to behave the same way as previous releases, unless there is a specific (documented) reason for it not to. I can confirm 'dnf install libxkbcommon' resolves the issue, but why is it not in the release notes? |