]> git.ipfire.org Git - thirdparty/dracut-ng.git/commitdiff
fix(systemd-ask-password): do not half-install systemd-ask-password-wall
authorJo Zzsi <jozzsicsataban@gmail.com>
Mon, 13 Jan 2025 01:01:09 +0000 (20:01 -0500)
committerLaszlo <laszlo.gombos@gmail.com>
Mon, 13 Jan 2025 12:13:57 +0000 (07:13 -0500)
Do not install the path unit when the service unit is not installed
for systemd-ask-password-wall.

Fixes the following warning on the CI:

[FAILED] Failed to start Forward Password Requests to Wall Directory Watch.
See 'systemctl status systemd-ask-password-wall.path' for details.
...
systemd[1]: systemd-ask-password-wall.path: Refusing to start, unit systemd-ask-password-wall.service to trigger not loaded.
systemd[1]: Failed to start Forward Password Requests to Wall Directory Watch.

modules.d/01systemd-ask-password/module-setup.sh

index 40774ab9bb3ad856ebca030b8ad324eba427d73d..8b09b69f2d862f675c91afc2d102f9b5b42af452 100755 (executable)
@@ -43,7 +43,6 @@ install() {
     inst_multiple -o \
         "$systemdsystemunitdir"/systemd-ask-password-console.path \
         "$systemdsystemunitdir"/systemd-ask-password-console.service \
-        "$systemdsystemunitdir"/multi-user.target.wants/systemd-ask-password-wall.path \
         "$systemdsystemunitdir"/sysinit.target.wants/systemd-ask-password-console.path \
         systemd-ask-password \
         systemd-tty-ask-password-agent