Blame SOURCES/fix-systemd-service-script-use-connect-args-patch

b220d3
commit 57315578d9e500dae5143dbda607dcadc933c545
b220d3
Author: James Smart <jsmart2021@gmail.com>
b220d3
Date:   Tue Jan 7 10:02:57 2020 -0700
b220d3
b220d3
    Fix systemd service script use of CONNECT_ARGS env var
b220d3
    
b220d3
    In testing, some environments are not properly expanding CONNECT_ARGS.
b220d3
    
b220d3
    Change systemd service file use of CONNECT_ARGS to be encapsulated by
b220d3
    apostrophes and parens.
b220d3
    
b220d3
    Signed-off-by: James Smart <jsmart2021@gmail.com>
b220d3
    Signed-off-by: Keith Busch <kbusch@kernel.org>
b220d3
b220d3
diff --git a/nvmf-autoconnect/systemd/nvmf-connect@.service b/nvmf-autoconnect/systemd/nvmf-connect@.service
b220d3
index 10fb3aa..c60f146 100644
b220d3
--- a/nvmf-autoconnect/systemd/nvmf-connect@.service
b220d3
+++ b/nvmf-autoconnect/systemd/nvmf-connect@.service
b220d3
@@ -11,4 +11,4 @@ Requires=nvmf-connect.target
b220d3
 [Service]
b220d3
 Type=simple
b220d3
 Environment="CONNECT_ARGS=%i"
b220d3
-ExecStart=/bin/sh -c "nvme connect-all --quiet `/bin/echo -e $CONNECT_ARGS`"
b220d3
+ExecStart=/bin/sh -c "nvme connect-all --quiet `/bin/echo -e '${CONNECT_ARGS}'`"