From: Lukas Nykryn Date: Fri, 27 Nov 2020 08:32:20 +0000 (+0100) Subject: multipathd: fix the comparison X-Git-Tag: 051~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c2521091f30d7c14caaf96850208afa2fe1d811;p=thirdparty%2Fdracut.git multipathd: fix the comparison From shellcheck: /usr/lib/dracut/modules.d/90multipath/multipathd.sh:3:32: warning[SC2039]: In POSIX sh, == in place of = is undefined. /usr/lib/dracut/modules.d/90multipath/multipathd.sh:3:32: warning[SC2193]: The arguments to this comparison can never be equal. --- diff --git a/modules.d/90multipath/multipathd.sh b/modules.d/90multipath/multipathd.sh index 936c5dc73..b0183ffeb 100755 --- a/modules.d/90multipath/multipathd.sh +++ b/modules.d/90multipath/multipathd.sh @@ -1,6 +1,6 @@ #!/bin/sh -if [ "$(getarg rd.multipath)x" == "default" ] && [ ! -e /etc/multipath.conf ]; then +if [ "$(getarg rd.multipath)" = "default" ] && [ ! -e /etc/multipath.conf ]; then mkdir -p /etc/multipath/multipath.conf.d mpathconf --enable fi