]> git.ipfire.org Git - thirdparty/systemd.git/commit - man/systemctl.xml
install: consider non-Alias=/non-DefaultInstance= symlinks as "indirect" enablement
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 21 Sep 2017 17:03:17 +0000 (19:03 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 22 Sep 2017 16:23:02 +0000 (18:23 +0200)
commitd9b4b48f3fee12293cc911929d1d92a01a5c69c9
tree3a5b2795916e61cd9823e149afcd11b3a674823e
parent5cd8ae31527384dcdbd1e9d2c7e7cd3a803222f8
install: consider non-Alias=/non-DefaultInstance= symlinks as "indirect" enablement

I think this matches the spirit of "indirect" well: the unit
*might* be active, even though it is not "installed" in the
sense of symlinks created based on the [Install] section.

The changes to test-install-root touch the same lines as in the previous
commit; the change in each case is from
   assert_se(unit_file_get_state(...) >= 0 && state == UNIT_FILE_ENABLED)
to
   assert_se(unit_file_get_state(...) >= 0 && state == UNIT_FILE_DISABLED)
to
   assert_se(unit_file_get_state(...) >= 0 && state == UNIT_FILE_INDIRECT)
in the last two commits.
man/systemctl.xml
src/shared/install.c
src/test/test-install-root.c