From 53aab69a0add9076507d32621c4669a784937047 Mon Sep 17 00:00:00 2001 From: Martin Wilck Date: Wed, 29 Apr 2020 19:09:58 +0200 Subject: [PATCH] nvmf-connect@.service: use nvme connect-all --matching Use the --matching option from the autoconnect service to avoid attempting connections multiple times. --- nvmf-autoconnect/systemd/nvmf-connect@.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nvmf-autoconnect/systemd/nvmf-connect@.service b/nvmf-autoconnect/systemd/nvmf-connect@.service index c60f146..5fbf081 100644 --- a/nvmf-autoconnect/systemd/nvmf-connect@.service +++ b/nvmf-autoconnect/systemd/nvmf-connect@.service @@ -11,4 +11,4 @@ Requires=nvmf-connect.target [Service] Type=simple Environment="CONNECT_ARGS=%i" -ExecStart=/bin/sh -c "nvme connect-all --quiet `/bin/echo -e '${CONNECT_ARGS}'`" +ExecStart=/bin/sh -c "nvme connect-all --matching --quiet `/bin/echo -e '${CONNECT_ARGS}'`" -- 2.49.0