units: run systemd-repart only if there's configuration for it

This commit is contained in:
Lennart Poettering 2020-04-02 17:04:38 +02:00
parent aade0c3b6e
commit fdfe909123
1 changed files with 4 additions and 0 deletions

View File

@ -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