]> git.ipfire.org Git - thirdparty/systemd.git/commit
shared/condition: add ConditionControlGroupController=v1|v2
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 22 Feb 2021 21:09:38 +0000 (22:09 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 23 Feb 2021 00:11:18 +0000 (01:11 +0100)
commit8ebfd50aaf5503de0e77e7786095760030458e67
tree6003d3d8635f3b81087f0fad0c09cccebd499ed0
parent6c3f7ca036829825f344ffb364354faee5db174e
shared/condition: add ConditionControlGroupController=v1|v2

Before, we only allowed conditionalizing on controllers, not the hierarchy.
This commit extends this to allow a simple check for v1 (i.e. classic or hybrid),
and v2 (full unified).

An alternative approach would be to add a separate Condition for this, but I'm
not too keen on that, considering that v1 is already being deprecrecated
(c.f. 82f3063218).
man/systemd.unit.xml
src/shared/condition.c
src/test/test-condition.c