]> git.ipfire.org Git - thirdparty/systemd.git/blobdiff - units/systemd-repart.service.in
firstboot: Check if the given shell exists
[thirdparty/systemd.git] / units / systemd-repart.service.in
index 7ce6aefd29fdb9dde76c05d0be064ccb97d99673..9393a64f001f8bfa70503e5f16d79b16e5d22bcf 100644 (file)
@@ -15,11 +15,15 @@ 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
 RemainAfterExit=yes
 ExecStart=@rootbindir@/systemd-repart --dry-run=no
 
-# The tool returns 77 if there's no GPT partition table pre-existing
+# The tool returns 77 if there's no existing GPT partition table
 SuccessExitStatus=77