File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ installkernel() {
63
63
# called by dracut
64
64
install () {
65
65
local -A _allow
66
+ local config_dir
66
67
67
68
add_hostonly_mpath_conf () {
68
69
if is_mpath " $1 " ; then
@@ -74,6 +75,16 @@ install() {
74
75
fi
75
76
}
76
77
78
+ local k v
79
+ while read -r k v; do
80
+ if [[ $k == " config_dir" ]]; then
81
+ v=" ${v# \" } "
82
+ config_dir=" ${v% \" } "
83
+ break
84
+ fi
85
+ done < <( multipath -t 2> /dev/null)
86
+ [[ -d $config_dir ]] || config_dir=/etc/multipath/conf.d
87
+
77
88
inst_multiple \
78
89
pkill \
79
90
pidof \
@@ -91,7 +102,7 @@ install() {
91
102
/etc/xdrdevices.conf \
92
103
/etc/multipath.conf \
93
104
/etc/multipath/* \
94
- /etc/multipath/conf.d /*
105
+ " $config_dir " /*
95
106
96
107
[[ $hostonly ]] && [[ $hostonly_mode == " strict" ]] && {
97
108
for_each_host_dev_and_slaves_all add_hostonly_mpath_conf
You can’t perform that action at this time.
0 commit comments