Bug 1967457

Summary: [FAILED] Failed to start Setup Virtual Console (because of SwissGerman loadkeys)
Product: [Fedora] Fedora Reporter: cvetkofabian07 <cvetkofabian07>
Component: systemdAssignee: systemd-maint
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 34CC: fedoraproject, filbranden, flepied, kasong, lnykryn, msekleta, ssahani, s, systemd-maint, vascom2, vitaly, yuwatana, zbyszek
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-07-20 10:21:06 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 cvetkofabian07@tutanota.com 2021-06-03 08:03:55 UTC
Description of problem:
Systemd on boot: [FAILED] Failed to start Setup Virtual Console

That's because keymap "sg" doesn't exist. Loading "ch" in tty works. 
/etc/vconsole.conf is allready correctly set to "ch" by default.
I set the console keymap myself with localectl, but the error persists.

Version-Release number of selected component (if applicable):
Fedora 34

How reproducible:

Every boot.

Steps to Reproduce:
1. Install Fedora 34 KDE plasma with SwissGerman keyboard
2. Boot System and get error (See below in additional info).

Actual results:
systemd-vconsole-setup.service apparently runns "loadkeys sg" witch will fail because "sg" doesn't exist.

Expected results:
"loadkeys ch"

Additional info:
Jun 03 00:27:21 ThinkPad systemd-vconsole-setup[219]: loadkeys: Unable to open file: sg: No such file or directory
Jun 03 00:27:23 ThinkPad systemd[1]: Starting Setup Virtual Console...
Jun 03 00:27:23 ThinkPad systemd-vconsole-setup[447]: loadkeys: Unable to open file: sg: No such file or directory
Jun 03 00:27:23 ThinkPad systemd-vconsole-setup[444]: /usr/bin/loadkeys failed with exit status 1.
Jun 03 00:27:23 ThinkPad systemd-vconsole-setup[444]: KD_FONT_OP_GET failed while trying to get the font metadata: Invalid argument
Jun 03 00:27:23 ThinkPad systemd-vconsole-setup[444]: Fonts will not be copied to remaining consoles
Jun 03 00:27:23 ThinkPad systemd[1]: systemd-vconsole-setup.service: Main process exited, code=exited, status=1/FAILURE
Jun 03 00:27:23 ThinkPad systemd[1]: systemd-vconsole-setup.service: Failed with result 'exit-code'.
Jun 03 00:27:23 ThinkPad systemd[1]: Failed to start Setup Virtual Console.
Jun 02 22:27:23 ThinkPad systemd-vconsole-setup[498]: loadkeys: Unable to open file: sg: No such file or directory

--------------------
vconsole.conf:
KEYMAP=ch
FONT=eurlatgr

Comment 1 Vasiliy Glazov 2021-07-17 12:20:48 UTC
I can confirm bug.

The same error with KEYMAP="ru".

Workaround:
1. Change KEYMAP in /etc/vconsole.conf to "us".
2. Run
sudo dracut -f
sudo dracut --regenerate-all --force

Comment 2 Vitaly 2021-07-17 13:26:33 UTC
Regression was introduced by https://src.fedoraproject.org/rpms/kbd/c/de77dbc7a309249887deff748456f0d34e930ead?branch=rawhide

Fix:

sudo dnf install kbd-legacy
sudo dracut -f

Comment 3 Zbigniew Jędrzejewski-Szmek 2021-07-20 10:21:06 UTC

*** This bug has been marked as a duplicate of bug 1955793 ***