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
parent
1ec2e34adc
commit
ee6b44342b
|
@ -10,13 +10,14 @@ is_mpath() {
|
||||||
# called by dracut
|
# called by dracut
|
||||||
check() {
|
check() {
|
||||||
local _rootdev
|
local _rootdev
|
||||||
# if there's no multipath binary, no go.
|
|
||||||
require_binaries multipath || return 1
|
|
||||||
|
|
||||||
[[ $hostonly ]] || [[ $mount_needs ]] && {
|
[[ $hostonly ]] || [[ $mount_needs ]] && {
|
||||||
for_each_host_dev_and_slaves is_mpath || return 255
|
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
|
return 0
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue