Bug 1408878 - systemd-vconsole-setup.service fails to start due to missing dependency on kbd
Summary: systemd-vconsole-setup.service fails to start due to missing dependency on kbd
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 32
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-12-27 22:04 UTC by Dominik 'Rathann' Mierzejewski
Modified: 2020-08-06 10:18 UTC (History)
10 users (show)

Fixed In Version: systemd-245.2-1.fc32
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-04-01 18:26:29 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dominik 'Rathann' Mierzejewski 2016-12-27 22:04:53 UTC
Description of problem:
systemd-vconsole-setup.service won't start properly unless kbd is installed. Running /usr/lib/systemd/systemd-vconsole-setup directly shows it tries to run setfont and loadkeys which are provided by the kbd package. There's no dependency on kbd in systemd package (F24). As it's not a critical failure, I guess Recommends: kbd is in order.

Version-Release number of selected component (if applicable):
rpm -qf /usr/lib/systemd/systemd-vconsole-setup
systemd-229-16.fc24.x86_64

How reproducible:
Always.

Steps to Reproduce:
1. dnf remove kbd
2. systemctl start systemd-vconsole-setup.service
3. systemctl status systemd-vconsole-setup.service

Actual results:
● systemd-vconsole-setup.service - Setup Virtual Console
   Loaded: loaded (/usr/lib/systemd/system/systemd-vconsole-setup.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Wed 2016-12-21 14:14:16 CET; 6 days ago
     Docs: man:systemd-vconsole-setup.service(8)
           man:vconsole.conf(5)
 Main PID: 1010 (code=exited, status=1/FAILURE)

Dec 21 14:14:16 localhost systemd[1]: Starting Setup Virtual Console...
Dec 21 14:14:16 localhost systemd[1]: systemd-vconsole-setup.service: Main process exited, code=exited, s
Dec 21 14:14:16 localhost systemd[1]: Failed to start Setup Virtual Console.
Dec 21 14:14:16 localhost systemd[1]: systemd-vconsole-setup.service: Unit entered failed state.
Dec 21 14:14:16 localhost systemd[1]: systemd-vconsole-setup.service: Failed with result 'exit-code'.

Expected results:
● systemd-vconsole-setup.service - Setup Virtual Console
   Loaded: loaded (/usr/lib/systemd/system/systemd-vconsole-setup.service; static; vendor preset: disabled)
   Active: active (exited) since Tue 2016-12-27 22:53:40 CET; 1s ago
     Docs: man:systemd-vconsole-setup.service(8)
           man:vconsole.conf(5)
  Process: 7050 ExecStart=/usr/lib/systemd/systemd-vconsole-setup (code=exited, status=0/SUCCESS)
 Main PID: 7050 (code=exited, status=0/SUCCESS)

Dec 27 22:53:40 localhost systemd[1]: Starting Setup Virtual Console...
Dec 27 22:53:40 localhost systemd[1]: Started Setup Virtual Console.

Additional info:
I suspect all Fedora releases up to rawhide are affected, because in git master, there's no dependency on kbd in the -udev subpackage (which contains the unit file), either. I suggest adding Recommends: kbd.

Comment 1 Dominik 'Rathann' Mierzejewski 2017-03-22 00:09:24 UTC
Bumping to rawhide as it's not fixed in git master branch.

Comment 2 Zbigniew Jędrzejewski-Szmek 2017-07-11 05:30:51 UTC
Thanks. I added the dep in rawhide spec (w/o rebuilding). It'll be visible in the next build.

Comment 3 Dominik 'Rathann' Mierzejewski 2017-07-11 20:30:45 UTC
I'm not well acquainted with the console setup stuff these days, but maybe it'd make more sense to move the service unit to the kbd package instead?

Comment 4 Zbigniew Jędrzejewski-Szmek 2017-07-11 22:27:22 UTC
No, I don't think so. We put in quite a lot of work in systemd upstream into it.

Comment 5 Petr Pisar 2019-02-21 08:08:45 UTC
This is is trill broken in Fedora 30:

# systemctl status systemd-vconsole-setup.service
● systemd-vconsole-setup.service - Setup Virtual Console
   Loaded: loaded (/usr/lib/systemd/system/systemd-vconsole-setup.service; static; vendor preset: disabled)
   Active: failed (Result: exit-code) since Thu 2019-02-21 08:53:59 CET; 8min ago
     Docs: man:systemd-vconsole-setup.service(8)
           man:vconsole.conf(5)
  Process: 1008 ExecStart=/usr/lib/systemd/systemd-vconsole-setup (code=exited, status=1/FAILURE)
 Main PID: 1008 (code=exited, status=1/FAILURE)

Feb 21 08:53:59 fedora-30 systemd[1]: Starting Setup Virtual Console...
Feb 21 08:53:59 fedora-30 systemd-vconsole-setup[1008]: /usr/bin/setfont failed with exit status 1.
Feb 21 08:53:59 fedora-30 systemd-vconsole-setup[1008]: /usr/bin/loadkeys failed with exit status 1.
Feb 21 08:53:59 fedora-30 systemd-vconsole-setup[1008]: Setting source virtual console failed, ignoring remaining ones
Feb 21 08:53:59 fedora-30 systemd[1]: systemd-vconsole-setup.service: Main process exited, code=exited, status=1/FAILURE
Feb 21 08:53:59 fedora-30 systemd[1]: systemd-vconsole-setup.service: Failed with result 'exit-code'.
Feb 21 08:53:59 fedora-30 systemd[1]: Failed to start Setup Virtual Console.

# grep ExecStart /usr/lib/systemd/system/systemd-vconsole-setup.service
ExecStart=/usr/lib/systemd/systemd-vconsole-setup

# /usr/lib/systemd/systemd-vconsole-setup
/usr/bin/setfont failed with exit status 1.
/usr/bin/loadkeys failed with exit status 1.
Setting source virtual console failed, ignoring remaining ones

# rpm -qf /usr/bin/setfont
error: file /usr/bin/setfont: No such file or directory

# dnf -q repoquery --whatprovides '/usr/bin/setfont'
# dnf -q repoquery --whatprovides '/bin/setfont'
kbd-0:2.0.4-13.fc30.x86_64

# rpm -qf /usr/lib/systemd/systemd-vconsole-setup
systemd-udev-241-1.fc30.x86_64

# rpm -q systemd-udev --requires | grep kbd

Recommended fix: Add a dependency on kbd to systemd-udev.

Comment 6 Chris Murphy 2020-02-17 23:54:01 UTC
This might be a dup of 1801272.

Comment 7 Zbigniew Jędrzejewski-Szmek 2020-02-28 11:22:07 UTC
There was Recommends:kbd. I'll upgrade it to Requires in rawhide. Some people might be unhappy about
the extra dep, kbd if pretty hefty.

Comment 8 Zbigniew Jędrzejewski-Szmek 2020-03-03 13:21:15 UTC
Fixed in rawhide now.

Comment 9 Fedora Update System 2020-03-18 21:18:33 UTC
FEDORA-2020-645de57f2e has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-645de57f2e

Comment 10 Fedora Update System 2020-03-19 02:26:30 UTC
systemd-245.2-1.fc32 has been pushed to the Fedora 32 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2020-645de57f2e

Comment 11 Fedora Update System 2020-03-23 20:24:44 UTC
FEDORA-2020-645de57f2e has been pushed to the Fedora 32 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Zbigniew Jędrzejewski-Szmek 2020-04-01 18:26:29 UTC
For some reason, bodhi didn't close this bug.

Comment 13 Harald Reindl 2020-08-06 10:18:13 UTC
this still don't work with german keybaord layout and F31

https://bugzilla.redhat.com/show_bug.cgi?id=1852427

[root@rawhide ~]# system-errors.sh
Aug  6 12:10:38 rawhide systemd[1]: systemd-vconsole-setup.service: Main process exited, code=exited, status=1/FAILURE
Aug  6 12:10:38 rawhide systemd[1]: systemd-vconsole-setup.service: Failed with result 'exit-code'.
Aug  6 12:10:38 rawhide systemd[1]: Failed to start Setup Virtual Console.
Aug  6 12:10:38 rawhide systemd[1]: Dependency failed for dracut ask for additional cmdline parameters.
Aug  6 12:10:38 rawhide systemd[1]: dracut-cmdline-ask.service: Job dracut-cmdline-ask.service/start failed with result 'dependency'.
Aug  6 12:10:38 rawhide systemd-vconsole-setup[221]: /usr/bin/loadkeys failed with exit status 1.
Aug  6 12:10:39 rawhide systemd-vconsole-setup[281]: /usr/bin/loadkeys failed with exit status 1.
Aug  6 12:10:39 rawhide systemd-udevd[267]: vtcon0: Process '/usr/lib/systemd/systemd-vconsole-setup' failed with exit code 1.

[root@rawhide ~]# rpm -qa | grep kbd
kbd-misc-2.2.0-1.fc32.noarch
kbd-legacy-2.2.0-1.fc32.noarch
kbd-2.2.0-1.fc32.x86_64

[root@rawhide ~]# lsinitrd | grep de-latin1-nodeadkey
-rw-r--r--   1 root     root          493 Feb 10 11:26 usr/lib/kbd/keymaps/legacy/i386/qwertz/de-latin1-nodeadkeys.map

[root@rawhide ~]# systemctl status systemd-vconsole-setup.service
● systemd-vconsole-setup.service - Setup Virtual Console
     Loaded: loaded (/usr/lib/systemd/system/systemd-vconsole-setup.service; static; vendor preset: disabled)
     Active: failed (Result: exit-code) since Sat 2020-06-27 20:45:53 CEST; 51s ago
       Docs: man:systemd-vconsole-setup.service(8)
             man:vconsole.conf(5)
   Main PID: 209 (code=exited, status=1/FAILURE)
        CPU: 28ms

Jun 27 20:45:54 rawhide.vmware.local systemd-vconsole-setup[214]: cannot open file de-latin1-nodeadkeys


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