You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
33 lines
1.2 KiB
33 lines
1.2 KiB
--- |
|
multipath/multipath.rules | 11 +++++++++-- |
|
1 file changed, 9 insertions(+), 2 deletions(-) |
|
|
|
Index: multipath-tools-130222/multipath/multipath.rules |
|
=================================================================== |
|
--- multipath-tools-130222.orig/multipath/multipath.rules |
|
+++ multipath-tools-130222/multipath/multipath.rules |
|
@@ -4,8 +4,14 @@ SUBSYSTEM!="block", GOTO="end_mpath" |
|
|
|
IMPORT{cmdline}="nompath" |
|
ENV{nompath}=="?*", GOTO="end_mpath" |
|
-ENV{DEVTYPE}=="partition", IMPORT{parent}="DM_MULTIPATH_DEVICE_PATH", \ |
|
- GOTO="end_mpath" |
|
+ENV{DEVTYPE}!="partition", GOTO="test_dev" |
|
+IMPORT{parent}="DM_MULTIPATH_DEVICE_PATH" |
|
+ENV{DM_MULTIPATH_DEVICE_PATH}=="1", ENV{ID_FS_TYPE}="none", \ |
|
+ ENV{SYSTEMD_READY}="0" |
|
+GOTO="end_mpath" |
|
+ |
|
+LABEL="test_dev" |
|
+ |
|
ENV{MPATH_SBIN_PATH}="/sbin" |
|
TEST!="$env{MPATH_SBIN_PATH}/multipath", ENV{MPATH_SBIN_PATH}="/usr/sbin" |
|
TEST!="/etc/multipath.conf", GOTO="check_kpartx" |
|
@@ -33,6 +39,7 @@ ENV{DM_MULTIPATH_DEVICE_PATH}="" |
|
ENV{DM_MULTIPATH_WIPE_PARTS}="" |
|
|
|
LABEL="update_timestamp" |
|
+ENV{DM_MULTIPATH_DEVICE_PATH}=="1", ENV{SYSTEMD_READY}="0" |
|
ENV{DM_MULTIPATH_DEVICE_PATH}=="1", ENV{DM_MULTIPATH_WIPE_PARTS}!="1", \ |
|
ENV{DM_MULTIPATH_WIPE_PARTS}="1", \ |
|
RUN+="/sbin/partx -d --nr 1-1024 $env{DEVNAME}"
|
|
|