]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Fix warning about multipath if not needed 309/head
authorFabian Vogt <fvogt@suse.com>
Tue, 23 Aug 2016 10:56:21 +0000 (12:56 +0200)
committerDaniel Molkentin <dmolkentin@suse.com>
Thu, 30 Nov 2017 15:51:15 +0000 (16:51 +0100)
Although no device uses multipath, the module checks
for presence of the multipath binary first, printing a
warning if not present. This patch fixes the wrong ordering.

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
 }