|
|
|
@ -63,6 +63,7 @@ installkernel() {
@@ -63,6 +63,7 @@ installkernel() {
|
|
|
|
|
# called by dracut |
|
|
|
|
install() { |
|
|
|
|
local -A _allow |
|
|
|
|
local config_dir |
|
|
|
|
|
|
|
|
|
add_hostonly_mpath_conf() { |
|
|
|
|
if is_mpath "$1"; then |
|
|
|
@ -74,6 +75,16 @@ install() {
@@ -74,6 +75,16 @@ install() {
|
|
|
|
|
fi |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
local k v |
|
|
|
|
while read -r k v; do |
|
|
|
|
if [[ $k == "config_dir" ]]; then |
|
|
|
|
v="${v#\"}" |
|
|
|
|
config_dir="${v%\"}" |
|
|
|
|
break |
|
|
|
|
fi |
|
|
|
|
done < <(multipath -t 2> /dev/null) |
|
|
|
|
[[ -d $config_dir ]] || config_dir=/etc/multipath/conf.d |
|
|
|
|
|
|
|
|
|
inst_multiple \ |
|
|
|
|
pkill \ |
|
|
|
|
pidof \ |
|
|
|
@ -91,7 +102,7 @@ install() {
@@ -91,7 +102,7 @@ install() {
|
|
|
|
|
/etc/xdrdevices.conf \ |
|
|
|
|
/etc/multipath.conf \ |
|
|
|
|
/etc/multipath/* \ |
|
|
|
|
/etc/multipath/conf.d/* |
|
|
|
|
"$config_dir"/* |
|
|
|
|
|
|
|
|
|
[[ $hostonly ]] && [[ $hostonly_mode == "strict" ]] && { |
|
|
|
|
for_each_host_dev_and_slaves_all add_hostonly_mpath_conf |
|
|
|
|