]> www.infradead.org Git - users/hch/nvme-cli.git/commitdiff
nvme-cli: Check for sysfs interface before NVMe discovery
authorSimon Schricker <sschricker@suse.de>
Fri, 29 Nov 2019 09:52:05 +0000 (10:52 +0100)
committerKeith Busch <kbusch@kernel.org>
Fri, 29 Nov 2019 16:45:10 +0000 (09:45 -0700)
This prevents an unnecessary error message in the case that the nvme-fc
kernel module is not loaded and the
  /sys/class/fc/fc_udev_device/nvme_discovery
handle is not available.

nvmf-autoconnect/systemd/nvmefc-boot-connections.service

index 84f6486b78f36a39bdc20b5de826e1170dce61fe..33ab8c1f610fb8b7ddb220650a3664cc0d1e20da 100644 (file)
@@ -1,5 +1,6 @@
 [Unit]
 Description=Auto-connect to subsystems on FC-NVME devices found during boot
+ConditionPathExists=/sys/class/fc/fc_udev_device/nvme_discovery
 
 [Service]
 Type=oneshot