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