ab0e4d
From b76aac712f822e75951b10f516c99c573b89e4fe Mon Sep 17 00:00:00 2001
ab0e4d
From: David Tardon <dtardon@redhat.com>
ab0e4d
Date: Tue, 4 Aug 2020 14:18:54 +0200
ab0e4d
Subject: [PATCH] match simplified rd.zfcp format too
ab0e4d
ab0e4d
The simplified format was introduced by commit
ab0e4d
c8aa1d949aecaf146b0a0e1ce269f69e6048dc5a .
ab0e4d
ab0e4d
(cherry picked from commit d9e27b091717a1ce1c58cc911d9d7b5ec3ed901e)
ab0e4d
ab0e4d
Resolves: #1552619
ab0e4d
---
ab0e4d
 modules.d/95zfcp/parse-zfcp.sh | 2 +-
ab0e4d
 1 file changed, 1 insertion(+), 1 deletion(-)
ab0e4d
ab0e4d
diff --git a/modules.d/95zfcp/parse-zfcp.sh b/modules.d/95zfcp/parse-zfcp.sh
ab0e4d
index fb4d9c9e..5aa6add8 100755
ab0e4d
--- a/modules.d/95zfcp/parse-zfcp.sh
ab0e4d
+++ b/modules.d/95zfcp/parse-zfcp.sh
ab0e4d
@@ -3,7 +3,7 @@
ab0e4d
 getargbool 1 rd.zfcp.conf -d -n rd_NO_ZFCPCONF || rm /etc/zfcp.conf
ab0e4d
 
ab0e4d
 for zfcp_arg in $(getargs rd.zfcp -d 'rd_ZFCP='); do
ab0e4d
-    echo $zfcp_arg | grep '^0\.[0-9a-fA-F]\.[0-9a-fA-F]\{4\},0x[0-9a-fA-F]\{16\},0x[0-9a-fA-F]\{16\}$' >/dev/null
ab0e4d
+    echo $zfcp_arg | grep '^0\.[0-9a-fA-F]\.[0-9a-fA-F]\{4\}\(,0x[0-9a-fA-F]\{16\},0x[0-9a-fA-F]\{16\}\)\?$' >/dev/null
ab0e4d
     test $? -ne 0 && die "For argument 'rd.zfcp=$zfcp_arg'\nSorry, invalid format."
ab0e4d
     (
ab0e4d
         IFS=","
ab0e4d