Blame SOURCES/0214-RHBZ-1392115-set-paths-not-ready.patch

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