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.
Bumping to rawhide as it's not fixed in git master branch.
Thanks. I added the dep in rawhide spec (w/o rebuilding). It'll be visible in the next build.
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?
No, I don't think so. We put in quite a lot of work in systemd upstream into it.
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.
This might be a dup of 1801272.
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.
Fixed in rawhide now.
FEDORA-2020-645de57f2e has been submitted as an update to Fedora 32. https://bodhi.fedoraproject.org/updates/FEDORA-2020-645de57f2e
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
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.
For some reason, bodhi didn't close this bug.
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