Bug 1967457 - [FAILED] Failed to start Setup Virtual Console (because of SwissGerman loadkeys)
Summary: [FAILED] Failed to start Setup Virtual Console (because of SwissGerman loadkeys)
Keywords:
Status: CLOSED DUPLICATE of bug 1955793
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 34
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-06-03 08:03 UTC by cvetkofabian07@tutanota.com
Modified: 2021-07-20 10:21 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-07-20 10:21:06 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


Note You need to log in before you can comment on or make changes to this bug.