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
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

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.
Comment by n_ (n_) - Friday, 04 August 2023, 20:30 GMT
This might be the source of https://bugs.archlinux.org/task/79271
Comment by Toolybird (Toolybird) - Saturday, 05 August 2023, 01:16 GMT
So this looks essentially the same as  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

Loading...