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

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