Skip to contentSkip to conversation

systemd/nvmf-autoconnect.service: load nvme-fabrics before autoconnect

PATCH New Sagi Grimberg 1 participant 1 message May 26, 2021 NVMe

lore
Share & tools
lore

Sagi Grimberg

author maintainer
#0 lore raw

PATCH 1/1 systemd/nvmf-autoconnect.service: load nvme-fabrics before autoconnect

Upon boot nvme-fabrics needs to be loaded, so make sure to load it before executing ExecStart. The driver will know to request the transport module according to the transport parameter.

---
 nvmf-autoconnect/systemd/nvmf-autoconnect.service | 1 +
 1 file changed, 1 insertion(+)
nvmf-autoconnect/systemd/nvmf-autoconnect.service +1 -0
index 26904674ffe7..bf40db0b549d 100644
@@ -6,6 +6,7 @@ Before=remote-fs-pre.target
 
 [Service]
 Type=oneshot
+ExecStartPre=/sbin/modprobe nvme-fabrics
 ExecStart=/usr/sbin/nvme connect-all
 
 [Install]
Signature · 7 lines
2.27.0


_______________________________________________
Linux-nvme mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-nvme