summaryrefslogtreecommitdiff
path: root/units/systemd-repart.service.in
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-04-07 11:22:21 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2021-04-21 12:23:31 +0100
commit2671fbefcec9f31817ea75aab32531305952876f (patch)
tree7d8576a4a33c3d3dab80366dc4810d5032329406 /units/systemd-repart.service.in
parentea846e45c18883dab2f58e2f0d23fd0577b58c8e (diff)
downloadsystemd-2671fbefcec9f31817ea75aab32531305952876f.tar.gz
units: fix repart conditions to run if definitions exist in /sysroot + /sysusr
The systemd-repart code was already smart enough to look for definitions there, but the unit file conditions made that pointless. Let's fix that.
Diffstat (limited to 'units/systemd-repart.service.in')
-rw-r--r--units/systemd-repart.service.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/units/systemd-repart.service.in b/units/systemd-repart.service.in
index 60dc7783b3..4634d983c1 100644
--- a/units/systemd-repart.service.in
+++ b/units/systemd-repart.service.in
@@ -19,6 +19,11 @@ ConditionDirectoryNotEmpty=|/usr/lib/repart.d
ConditionDirectoryNotEmpty=|/usr/local/lib/repart.d
ConditionDirectoryNotEmpty=|/etc/repart.d
ConditionDirectoryNotEmpty=|/run/repart.d
+ConditionDirectoryNotEmpty=|/sysroot/usr/lib/repart.d
+ConditionDirectoryNotEmpty=|/sysroot/usr/local/lib/repart.d
+ConditionDirectoryNotEmpty=|/sysroot/etc/repart.d
+ConditionDirectoryNotEmpty=|/sysusr/usr/lib/repart.d
+ConditionDirectoryNotEmpty=|/sysusr/usr/local/lib/repart.d
[Service]
Type=oneshot