]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
units: run systemd-repart only if there's configuration for it 15310/head
authorLennart Poettering <lennart@poettering.net>
Thu, 2 Apr 2020 15:04:38 +0000 (17:04 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 2 Apr 2020 15:07:48 +0000 (17:07 +0200)
units/systemd-repart.service.in

index 914d0f7c14ec854ad11e0c35dad56b0973997bc6..9393a64f001f8bfa70503e5f16d79b16e5d22bcf 100644 (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