From fdfe909123f39c3cb7d11840d43c2f63508bdfe1 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 2 Apr 2020 17:04:38 +0200 Subject: [PATCH] units: run systemd-repart only if there's configuration for it --- units/systemd-repart.service.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/units/systemd-repart.service.in b/units/systemd-repart.service.in index 914d0f7c14e..9393a64f001 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 -- 2.47.3