multipath.rules: Whitelist devices
[multipath-tools/.git] / multipath / multipath.rules
1 # Set DM_MULTIPATH_DEVICE_PATH if the device should be handled by multipath
2 SUBSYSTEM!="block", GOTO="end_mpath"
3
4 ENV{MPATH_SBIN_PATH}="/sbin"
5 TEST!="$env{MPATH_SBIN_PATH}/multipath", ENV{MPATH_SBIN_PATH}="/usr/sbin"
6
7 SUBSYSTEM=="block", ACTION=="add|change", KERNEL=="sd*[!0-9]|dasd*[!0-9]", \
8         ENV{DM_MULTIPATH_DEVICE_PATH}!="1", \
9         PROGRAM=="$env{MPATH_SBIN_PATH}/multipath -u %k", \
10         ENV{DM_MULTIPATH_DEVICE_PATH}="1" \
11         ENV{SYSTEMD_READY}="0"
12
13 LABEL="end_mpath"