ab0e4d
From 08ef5f0da71b84f606c2a75bd0574b206b997fc3 Mon Sep 17 00:00:00 2001
ab0e4d
From: Lukas Nykryn <lnykryn@redhat.com>
ab0e4d
Date: Fri, 27 Nov 2020 09:32:20 +0100
ab0e4d
Subject: [PATCH] multipathd: fix the comparison
ab0e4d
ab0e4d
From shellcheck:
ab0e4d
/usr/lib/dracut/modules.d/90multipath/multipathd.sh:3:32: warning[SC2039]: In POSIX sh, == in place of = is undefined.
ab0e4d
/usr/lib/dracut/modules.d/90multipath/multipathd.sh:3:32: warning[SC2193]: The arguments to this comparison can never be equal.
ab0e4d
ab0e4d
(cherry picked from commit 7c2521091f30d7c14caaf96850208afa2fe1d811)
ab0e4d
ab0e4d
Resolves: #1888779
ab0e4d
---
ab0e4d
 modules.d/90multipath/multipathd.sh | 2 +-
ab0e4d
 1 file changed, 1 insertion(+), 1 deletion(-)
ab0e4d
ab0e4d
diff --git a/modules.d/90multipath/multipathd.sh b/modules.d/90multipath/multipathd.sh
ab0e4d
index 936c5dc7..b0183ffe 100755
ab0e4d
--- a/modules.d/90multipath/multipathd.sh
ab0e4d
+++ b/modules.d/90multipath/multipathd.sh
ab0e4d
@@ -1,6 +1,6 @@
ab0e4d
 #!/bin/sh
ab0e4d
 
ab0e4d
-if [ "$(getarg rd.multipath)x" == "default" ] && [ ! -e /etc/multipath.conf ]; then
ab0e4d
+if [ "$(getarg rd.multipath)" = "default" ] && [ ! -e /etc/multipath.conf ]; then
ab0e4d
     mkdir -p /etc/multipath/multipath.conf.d
ab0e4d
     mpathconf --enable
ab0e4d
 fi
ab0e4d