]> git.ipfire.org Git - thirdparty/systemd.git/commit
install: when a template unit is instantiated via a /usr symlink, consider it enabled
authorLennart Poettering <lennart@poettering.net>
Tue, 7 Feb 2017 19:16:12 +0000 (20:16 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 7 Feb 2017 19:16:12 +0000 (20:16 +0100)
commitdfead90d936d4c4cbe4f164f35def7399d80817c
treed3c8805a28d325c8791ea05bccfdb02fb8a12306
parent9f6cbcf53cd3abe416b9808bbfb5648c6b808400
install: when a template unit is instantiated via a /usr symlink, consider it enabled

If a unit foobar@.service stored below /usr is instantiated via a
symlink foobar@quux.service also below /usr, then we should consider the
instance statically enabled, while the template itself should continue
to be considered enabled/disabled/static depending on its [Install]
section.

In order to implement this we'll now look for enablement symlinks in all
unit search paths, not just in the config and runtime dirs.

Fixes: #5136
src/shared/install.c
src/test/test-install-root.c