]> git.ipfire.org Git - thirdparty/dracut.git/blobdiff - modules.d/90multipath/module-setup.sh
Fix warning about multipath if not needed
[thirdparty/dracut.git] / modules.d / 90multipath / module-setup.sh
index 28857ebcd6dbea3fd54fbd10fd74dca286c1bd2f..0a680b177b376ebbfa2f4bdbd0d3a1994e4183d7 100755 (executable)
@@ -10,13 +10,14 @@ is_mpath() {
 # called by dracut
 check() {
     local _rootdev
-    # if there's no multipath binary, no go.
-    require_binaries multipath || return 1
 
     [[ $hostonly ]] || [[ $mount_needs ]] && {
         for_each_host_dev_and_slaves is_mpath || return 255
     }
 
+    # if there's no multipath binary, no go.
+    require_binaries multipath || return 1
+
     return 0
 }