Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 2031127

Summary: systemd-vconsole-setup fails after RHEL install in Finnish, /etc/vconsole.conf points to nonexisting file
Product: Red Hat Enterprise Linux 9 Reporter: Cristian Seres <cseres>
Component: kbdAssignee: Vitezslav Crhonek <vcrhonek>
Status: CLOSED ERRATA QA Contact: Jakub Haruda <jharuda>
Severity: low Docs Contact:
Priority: unspecified    
Version: 9.0CC: jharuda, myllynen
Target Milestone: rcKeywords: Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: kbd-2.4.0-8.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-05-17 16:02:04 UTC 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 Cristian Seres 2021-12-10 14:53:44 UTC
Description of problem:
systemd-vconsole-setup fails after install if language is set to Finnish. The resolution suggested in https://access.redhat.com/solutions/5721321 is not optimal as it changes console keyboard setup to foreign language and makes special characters difficult to type.

Version-Release number of selected component (if applicable):
kbd-misc-2.4.0-7.el9.noarch
systemd-udev-249-9.el9.x86_64

How reproducible:
Always

Steps to Reproduce:
1. Install RHEL 9.0 Beta and select Finnish as primary language (anaconda-ks.cfg has keyboard --xlayouts='fi' and lang fi_FI.UTF-8)

Actual results:
During system startup there is an error about systemd-vconsole-setup failing. systemctl status systemd-vconsole-setup shows "loadkeys: Unable to open file: fi: Tiedostoa tai hakemistoa ei ole
joulu 03 17:28:25 rhe9-testi.contrasec.fi systemd-vconsole-setup[553]: /usr/bin/loadkeys failed with exit status 1.

However, the console login seems to work and have Finnish keyboard layout despite the error.

/etc/vconsole.conf contains KEYMAP="fi"

Expected results:
No failure in systemd-vconsole-setup after install.

Additional info:
It seems that loadkeys is trying to open /usr/lib/kbd/keymaps/xkb/fi[.map.gz], however there are only following alternatives available:
ls -1 /usr/lib/kbd/keymaps/xkb/fi*
/usr/lib/kbd/keymaps/xkb/fi-classic.map.gz
/usr/lib/kbd/keymaps/xkb/fi-kotoistus.map.gz
/usr/lib/kbd/keymaps/xkb/fi-mac.map.gz
/usr/lib/kbd/keymaps/xkb/fi-nodeadkeys.map.gz
/usr/lib/kbd/keymaps/xkb/fi-smi.map.gz
/usr/lib/kbd/keymaps/xkb/fi-winkeys.map.gz

There are files without hyphen suffix for most languages, but not for Finnish.

Workaround to get the systemd-vconsole-setup running and have a Finnish keyboard: modify /etc/vconsole.conf, change KEYMAP="fi" to KEYMAP="fi-classic" (or some other filename matching existing file in /usr/lib/kbd/keymaps/xkb/).

Comment 1 Vitezslav Crhonek 2021-12-22 12:02:14 UTC
Hi Cristian,

Thank you for the bug report. Change fixing this issue is already done in Fedora,
we just need to apply it for RHEL9 too.

See for more details:
https://bugzilla.redhat.com/show_bug.cgi?id=2001787

This will introduce /usr/lib/kbd/keymaps/xkb/fi.map.gz in kbd-misc and
systemd-vconsole-setup should fail no more.

Comment 15 errata-xmlrpc 2022-05-17 16:02:04 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (new packages: kbd), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2022:4033