From ee6b44342b577164495b57a6655a5a08c764d09b Mon Sep 17 00:00:00 2001 From: Fabian Vogt Date: Tue, 23 Aug 2016 12:56:21 +0200 Subject: [PATCH] Fix warning about multipath if not needed 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 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/modules.d/90multipath/module-setup.sh b/modules.d/90multipath/module-setup.sh index 28857ebc..0a680b17 100755 --- a/modules.d/90multipath/module-setup.sh +++ b/modules.d/90multipath/module-setup.sh @@ -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 }