Blame SOURCES/nvme-cli-check-sysfs-interface-before-nvme-disc-patch

b220d3
commit ca9a2ec103003d1377c45d49452c457194ad27db
b220d3
Author: Simon Schricker <sschricker@suse.de>
b220d3
Date:   Fri Nov 29 10:52:05 2019 +0100
b220d3
b220d3
    nvme-cli: Check for sysfs interface before NVMe discovery
b220d3
    
b220d3
    This prevents an unnecessary error message in the case that the nvme-fc
b220d3
    kernel module is not loaded and the
b220d3
      /sys/class/fc/fc_udev_device/nvme_discovery
b220d3
    handle is not available.
b220d3
b220d3
diff --git a/nvmf-autoconnect/systemd/nvmefc-boot-connections.service b/nvmf-autoconnect/systemd/nvmefc-boot-connections.service
b220d3
index 84f6486..33ab8c1 100644
b220d3
--- a/nvmf-autoconnect/systemd/nvmefc-boot-connections.service
b220d3
+++ b/nvmf-autoconnect/systemd/nvmefc-boot-connections.service
b220d3
@@ -1,5 +1,6 @@
b220d3
 [Unit]
b220d3
 Description=Auto-connect to subsystems on FC-NVME devices found during boot
b220d3
+ConditionPathExists=/sys/class/fc/fc_udev_device/nvme_discovery
b220d3
 
b220d3
 [Service]
b220d3
 Type=oneshot