multipath.rules: fixup race condition with systemd
[multipath-tools/.git] / multipath / multipath.rules
index 799fbb0..c76e6b8 100644 (file)
@@ -4,10 +4,11 @@ SUBSYSTEM!="block", GOTO="end_mpath"
 ENV{MPATH_SBIN_PATH}="/sbin"
 TEST!="$env{MPATH_SBIN_PATH}/multipath", ENV{MPATH_SBIN_PATH}="/usr/sbin"
 
-SUBSYSTEM=="block", ACTION=="add|change", KERNEL!="dm-*", \
+SUBSYSTEM=="block", ACTION=="add|change", KERNEL=="sd*|dasd*", \
        ENV{DM_MULTIPATH_DEVICE_PATH}!="1", \
-       PROGRAM=="$env{MPATH_SBIN_PATH}/multipath -v 0 -c $tempnode", \
+       PROGRAM=="$env{MPATH_SBIN_PATH}/multipath -u %k", \
        ENV{DM_MULTIPATH_DEVICE_PATH}="1" \
+       ENV{ID_FS_TYPE}="none" \
        ENV{SYSTEMD_READY}="0"
 
 LABEL="end_mpath"