]> www.infradead.org Git - users/sagi/nvme-cli.git/commitdiff
fabrics: fix conditions in nvmf-autoconnect.service
authorMartin Wilck <mwilck@suse.com>
Tue, 23 May 2023 10:43:46 +0000 (12:43 +0200)
committerDaniel Wagner <wagi@monom.org>
Wed, 24 May 2023 11:39:07 +0000 (13:39 +0200)
The unit should be started if either config.json or discovery.conf
exists. The current syntax would start it if either one does not
exist. Fix it.

Fixes: eec7634 ("fabrics: Trigger auto connect if config.json exists")
Signed-off-by: Martin Wilck <mwilck@suse.com>
nvmf-autoconnect/systemd/nvmf-autoconnect.service.in

index c57ff718cc47d0b5559257be5e2578ed6790ae45..06790c30b4ba6037d6b0da03eada0381424c34d0 100644 (file)
@@ -1,7 +1,7 @@
 [Unit]
 Description=Connect NVMe-oF subsystems automatically during boot
-ConditionPathExists=|!@SYSCONFDIR@/nvme/config.json
-ConditionPathExists=|!@SYSCONFDIR@/nvme/discovery.conf
+ConditionPathExists=|@SYSCONFDIR@/nvme/config.json
+ConditionPathExists=|@SYSCONFDIR@/nvme/discovery.conf
 After=network-online.target
 Before=remote-fs-pre.target