summaryrefslogtreecommitdiff
path: root/src/core/namespace.c
diff options
context:
space:
mode:
authorMike Yuan <me@yhndnzj.com>2022-11-18 15:43:34 +0800
committerMike Yuan <me@yhndnzj.com>2022-12-03 20:26:14 +0800
commitbf1bea43f15b04152a3948702ba1695a0835c2bf (patch)
tree3c919627634b4b63dca861de01699b90308a9032 /src/core/namespace.c
parentbef69ae8780da17a807881d078247259170f868e (diff)
downloadsystemd-bf1bea43f15b04152a3948702ba1695a0835c2bf.tar.gz
systemctl: warn if trying to disable a unit with no install info
Trying to disable a unit with no install info is mostly useless, so adding a warning like we do for enable (with the new dbus method 'DisableUnitFilesWithFlagsAndInstallInfo()'). Note that it would still find and remove symlinks to the unit in /etc, regardless of whether it has install info or not, just like before. And if there are actually files to remove, we suppress the warning. Fixes #17689
Diffstat (limited to 'src/core/namespace.c')
0 files changed, 0 insertions, 0 deletions