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