|
|
f20720 |
---
|
|
|
f20720 |
multipath/multipath.rules | 11 +++++++++--
|
|
|
f20720 |
1 file changed, 9 insertions(+), 2 deletions(-)
|
|
|
f20720 |
|
|
|
f20720 |
Index: multipath-tools-130222/multipath/multipath.rules
|
|
|
f20720 |
===================================================================
|
|
|
f20720 |
--- multipath-tools-130222.orig/multipath/multipath.rules
|
|
|
f20720 |
+++ multipath-tools-130222/multipath/multipath.rules
|
|
|
f20720 |
@@ -4,8 +4,14 @@ SUBSYSTEM!="block", GOTO="end_mpath"
|
|
|
f20720 |
|
|
|
f20720 |
IMPORT{cmdline}="nompath"
|
|
|
f20720 |
ENV{nompath}=="?*", GOTO="end_mpath"
|
|
|
f20720 |
-ENV{DEVTYPE}=="partition", IMPORT{parent}="DM_MULTIPATH_DEVICE_PATH", \
|
|
|
f20720 |
- GOTO="end_mpath"
|
|
|
f20720 |
+ENV{DEVTYPE}!="partition", GOTO="test_dev"
|
|
|
f20720 |
+IMPORT{parent}="DM_MULTIPATH_DEVICE_PATH"
|
|
|
f20720 |
+ENV{DM_MULTIPATH_DEVICE_PATH}=="1", ENV{ID_FS_TYPE}="none", \
|
|
|
f20720 |
+ ENV{SYSTEMD_READY}="0"
|
|
|
f20720 |
+GOTO="end_mpath"
|
|
|
f20720 |
+
|
|
|
f20720 |
+LABEL="test_dev"
|
|
|
f20720 |
+
|
|
|
f20720 |
ENV{MPATH_SBIN_PATH}="/sbin"
|
|
|
f20720 |
TEST!="$env{MPATH_SBIN_PATH}/multipath", ENV{MPATH_SBIN_PATH}="/usr/sbin"
|
|
|
f20720 |
TEST!="/etc/multipath.conf", GOTO="check_kpartx"
|
|
|
f20720 |
@@ -33,6 +39,7 @@ ENV{DM_MULTIPATH_DEVICE_PATH}=""
|
|
|
f20720 |
ENV{DM_MULTIPATH_WIPE_PARTS}=""
|
|
|
f20720 |
|
|
|
f20720 |
LABEL="update_timestamp"
|
|
|
f20720 |
+ENV{DM_MULTIPATH_DEVICE_PATH}=="1", ENV{SYSTEMD_READY}="0"
|
|
|
f20720 |
ENV{DM_MULTIPATH_DEVICE_PATH}=="1", ENV{DM_MULTIPATH_WIPE_PARTS}!="1", \
|
|
|
f20720 |
ENV{DM_MULTIPATH_WIPE_PARTS}="1", \
|
|
|
f20720 |
RUN+="/sbin/partx -d --nr 1-1024 $env{DEVNAME}"
|