]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/install.h
install: warn if WantedBy targets don't exist
authorJan Synacek <jsynacek@redhat.com>
Wed, 3 Jun 2020 08:33:21 +0000 (10:33 +0200)
committerDavid Tardon <dtardon@redhat.com>
Fri, 23 Apr 2021 05:28:37 +0000 (07:28 +0200)
commit8ae27441c2dcf585f58242991302b09778d4d710
treef01e9bb3b82fbe2e128fb167ec751707b856efb4
parentcd228002ccedb927b4531a4b7dd9ea7015fdb657
install: warn if WantedBy targets don't exist

Currently, if [Install] section contains WantedBy=target that doesn't exist,
systemd creates the symlinks anyway. That is just user-unfriendly.
Let's be nice and warn about installing non-existent targets.

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

Replaces: #15834
src/shared/install.c
src/shared/install.h