summaryrefslogtreecommitdiff
path: root/units
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2020-04-02 17:04:38 +0200
committerLennart Poettering <lennart@poettering.net>2020-04-02 17:07:48 +0200
commitfdfe909123f39c3cb7d11840d43c2f63508bdfe1 (patch)
tree8bc973fe12acf7edcc8fbe9974be547aebdc3c8e /units
parentaade0c3b6e6f7a6d860cbcaf48a1d6dc02f4f460 (diff)
downloadsystemd-fdfe909123f39c3cb7d11840d43c2f63508bdfe1.tar.gz
units: run systemd-repart only if there's configuration for it
Diffstat (limited to 'units')
-rw-r--r--units/systemd-repart.service.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/units/systemd-repart.service.in b/units/systemd-repart.service.in
index 914d0f7c14..9393a64f00 100644
--- a/units/systemd-repart.service.in
+++ b/units/systemd-repart.service.in
@@ -15,6 +15,10 @@ Conflicts=shutdown.target
After=sysroot.mount
Before=initrd-root-fs.target shutdown.target
ConditionVirtualization=!container
+ConditionDirectoryNotEmpty=|/usr/lib/repart.d
+ConditionDirectoryNotEmpty=|/usr/local/lib/repart.d
+ConditionDirectoryNotEmpty=|/etc/repart.d
+ConditionDirectoryNotEmpty=|/run/repart.d
[Service]
Type=oneshot