From ca9a2ec103003d1377c45d49452c457194ad27db Mon Sep 17 00:00:00 2001 From: Simon Schricker Date: Fri, 29 Nov 2019 10:52:05 +0100 Subject: [PATCH] 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. --- nvmf-autoconnect/systemd/nvmefc-boot-connections.service | 1 + 1 file changed, 1 insertion(+) 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 -- 2.50.1