Browse Source

Merge pull request #309 from danimo/multipath_bin_error

Fix warning about multipath if not needed
master
Harald Hoyer 7 years ago committed by GitHub
parent
commit
96d69bbf34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      modules.d/90multipath/module-setup.sh

5
modules.d/90multipath/module-setup.sh

@ -10,13 +10,14 @@ is_mpath() { @@ -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
}


Loading…
Cancel
Save