diff options
author | Lennart Poettering <lennart@poettering.net> | 2020-04-02 17:04:38 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2020-04-02 17:07:48 +0200 |
commit | fdfe909123f39c3cb7d11840d43c2f63508bdfe1 (patch) | |
tree | 8bc973fe12acf7edcc8fbe9974be547aebdc3c8e /units | |
parent | aade0c3b6e6f7a6d860cbcaf48a1d6dc02f4f460 (diff) | |
download | systemd-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.in | 4 |
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 |