Blame SOURCES/nvmf-autoconnect-fix-abls-path-systemctl-patch

b220d3
commit 177d12ec112ab370d91b7129a33d2da43b809203
b220d3
Author: Sagi Grimberg <sagi@grimberg.me>
b220d3
Date:   Thu Aug 22 15:09:36 2019 -0700
b220d3
b220d3
    nvmf-autoconnect: fix absolute path for systemctl
b220d3
    
b220d3
    Without the absolute path udev gets the error:
b220d3
    failed to execute '/lib/udev/systemctl' 'systemctl --no-block start nvmf-connect@[...].service': No such file or directory
b220d3
    
b220d3
    Signed-off-by: Sagi Grimberg <sagi@grimberg.me>
b220d3
b220d3
diff --git a/nvmf-autoconnect/udev-rules/70-nvmf-autoconnect.rules b/nvmf-autoconnect/udev-rules/70-nvmf-autoconnect.rules
b220d3
index 789a2c8..c909fb0 100644
b220d3
--- a/nvmf-autoconnect/udev-rules/70-nvmf-autoconnect.rules
b220d3
+++ b/nvmf-autoconnect/udev-rules/70-nvmf-autoconnect.rules
b220d3
@@ -9,9 +9,9 @@
b220d3
 ACTION=="change", SUBSYSTEM=="nvme", ENV{NVME_EVENT}=="discovery",\
b220d3
   ENV{NVME_CTRL_NAME}=="*", ENV{NVME_TRTYPE}=="*", ENV{NVME_TRADDR}=="*", \
b220d3
   ENV{NVME_TRSVCID}=="*", ENV{NVME_HOST_TRADDR}=="*", \
b220d3
-  RUN+="systemctl --no-block start nvmf-connect@--device=$env{NVME_CTRL_NAME}\t--transport=$env{NVME_TRTYPE}\t--traddr=$env{NVME_TRADDR}\t--trsvcid=$env{NVME_TRSVCID}\t--host-traddr=$env{NVME_HOST_TRADDR}.service"
b220d3
+  RUN+="/bin/systemctl --no-block start nvmf-connect@--device=$env{NVME_CTRL_NAME}\t--transport=$env{NVME_TRTYPE}\t--traddr=$env{NVME_TRADDR}\t--trsvcid=$env{NVME_TRSVCID}\t--host-traddr=$env{NVME_HOST_TRADDR}.service"
b220d3
 
b220d3
 # nvme-fc transport generated events (old-style for compatibility)
b220d3
 ACTION=="change", SUBSYSTEM=="fc", ENV{FC_EVENT}=="nvmediscovery", \
b220d3
   ENV{NVMEFC_HOST_TRADDR}=="*",  ENV{NVMEFC_TRADDR}=="*", \
b220d3
-  RUN+="systemctl --no-block start nvmf-connect@--device=none\t--transport=fc\t--traddr=$env{NVMEFC_TRADDR}\t--trsvcid=none\t--host-traddr=$env{NVMEFC_HOST_TRADDR}.service"
b220d3
+  RUN+="/bin/systemctl --no-block start nvmf-connect@--device=none\t--transport=fc\t--traddr=$env{NVMEFC_TRADDR}\t--trsvcid=none\t--host-traddr=$env{NVMEFC_HOST_TRADDR}.service"