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.
master
Fabian Vogt 2016-08-23 12:56:21 +02:00 committed by Daniel Molkentin
parent 1ec2e34adc
commit ee6b44342b
1 changed files with 3 additions and 2 deletions

View File

@ -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
}