FS#79296 - systemd mkinitcpio hook shouldn't install systemd-vconsole-setup.service
Attached to Project:
Arch Linux
Opened by Max (qtmax) - Friday, 04 August 2023, 16:23 GMT
Last edited by Toolybird (Toolybird) - Saturday, 05 August 2023, 01:17 GMT
Opened by Max (qtmax) - Friday, 04 August 2023, 16:23 GMT
Last edited by Toolybird (Toolybird) - Saturday, 05 August 2023, 01:17 GMT
|
Details
Description:
After upgrading systemd to 254, /usr/lib/initcpio/install/systemd started installing systemd-vconsole-setup.service. However, it doesn't pull all the needed dependencies, such as /usr/bin/loadkeys, so this service fails on boot at the initramfs stage (it then restarts after switching to root), showing an error message saying "Failed to start Virtual Console Setup" (the log also says "/usr/bin/loadkeys failed with exit status 1."). The systemd hook shouldn't install systemd-vconsole-setup.service (it did not in older versions of the package), instead, it should be done by the sd-vconsole hook that also installs all its dependencies (such as loadkeys and setfont). Steps to reproduce: 1. On systemd 253.7-1, have "systemd", but not "sd-vconsole" in HOOKS in /etc/mkinitcpio.conf. 2. Observe clean boot without errors. 3. Upgrade the systemd, systemd-libs and systemd-sysvcompat packages to 254-1. 4. Reboot and observe the "Failed to start Virtual Console Setup" error message. |
This task depends upon
Closed by Toolybird (Toolybird)
Saturday, 05 August 2023, 01:17 GMT
Reason for closing: Duplicate
Additional comments about closing: Merging with FS#79287 . See comments.
Saturday, 05 August 2023, 01:17 GMT
Reason for closing: Duplicate
Additional comments about closing: Merging with
FS#79287(or at least *very* closely related). It should be helped by [1].> On systemd 253.7-1, have "systemd", but not "sd-vconsole" in HOOKS in /etc/mkinitcpio.conf
That seems like a non-standard hooks arrangement. FWIW I cannot repro using that setup. But I can repro when "systemd" AND "sd-vconsole" are in HOOKS and /etc/vconsole.conf is empty or non-existent.
I'll merge this into
FS#79287[1] https://gitlab.archlinux.org/archlinux/mkinitcpio/mkinitcpio/-/merge_requests/251