Blame SOURCES/rear-bz2061521.patch

a34f61
diff --git a/usr/share/rear/lib/layout-functions.sh b/usr/share/rear/lib/layout-functions.sh
a34f61
index 69f80ed7..4c0df9bd 100644
a34f61
--- a/usr/share/rear/lib/layout-functions.sh
a34f61
+++ b/usr/share/rear/lib/layout-functions.sh
a34f61
@@ -335,11 +335,9 @@ find_disk() {
a34f61
 }
a34f61
 
a34f61
 find_disk_and_multipath() {
a34f61
-    res=$(find_disk "$1" ${2+"$2"})
a34f61
-    if [[ -n "$res" || "$AUTOEXCLUDE_MULTIPATH" =~ ^[yY1] ]]; then
a34f61
-        echo $res
a34f61
-    else
a34f61
-        find_multipath "$1" ${2+"$2"}
a34f61
+    find_disk "$1" ${2+"$2"}
a34f61
+    if ! is_true "$AUTOEXCLUDE_MULTIPATH" ; then
a34f61
+        find_multipath "$1"
a34f61
     fi
a34f61
 }
a34f61