[PATCH nvme-cli] systemd/nvmf-autoconnect.service: load nvme-fabrics before autoconnect

Sagi Grimberg sagi at grimberg.me
Wed May 26 00:25:15 PDT 2021


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.

Signed-off-by: Sagi Grimberg <sagi at grimberg.me>
---
 nvmf-autoconnect/systemd/nvmf-autoconnect.service | 1 +
 1 file changed, 1 insertion(+)

diff --git a/nvmf-autoconnect/systemd/nvmf-autoconnect.service b/nvmf-autoconnect/systemd/nvmf-autoconnect.service
index 26904674ffe7..bf40db0b549d 100644
--- a/nvmf-autoconnect/systemd/nvmf-autoconnect.service
+++ b/nvmf-autoconnect/systemd/nvmf-autoconnect.service
@@ -6,6 +6,7 @@ Before=remote-fs-pre.target
 
 [Service]
 Type=oneshot
+ExecStartPre=/sbin/modprobe nvme-fabrics
 ExecStart=/usr/sbin/nvme connect-all
 
 [Install]
-- 
2.27.0




More information about the Linux-nvme mailing list