From: Simon Schricker Date: Fri, 29 Nov 2019 09:52:05 +0000 (+0100) Subject: nvme-cli: Check for sysfs interface before NVMe discovery X-Git-Tag: v1.10~26 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=ca9a2ec103003d1377c45d49452c457194ad27db;p=users%2Fhch%2Fnvme-cli.git nvme-cli: Check for sysfs interface before NVMe discovery 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. --- diff --git a/nvmf-autoconnect/systemd/nvmefc-boot-connections.service b/nvmf-autoconnect/systemd/nvmefc-boot-connections.service index 84f6486..33ab8c1 100644 --- a/nvmf-autoconnect/systemd/nvmefc-boot-connections.service +++ b/nvmf-autoconnect/systemd/nvmefc-boot-connections.service @@ -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