multipath-toosl: Use current name of the divice node ($name)
authorGuido Günther <agx@sigxcpu.org>
Sat, 21 Nov 2009 20:29:52 +0000 (21:29 +0100)
committerChristophe Varoqui <christophe.varoqui@free.fr>
Sun, 22 Nov 2009 00:06:07 +0000 (01:06 +0100)
instead of the kernel's name ($kernel). Otherwise we might end up
looking at a wrong or nonexistant node.

kpartx/kpartx.rules

index 5a62d57..8978b73 100644 (file)
@@ -27,9 +27,9 @@ ENV{DM_PART}=="?*", \
 
 # Create dm tables for partitions
 ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="mpath-*", \
-        RUN+="/sbin/kpartx -a -p -part /dev/$kernel"
+        RUN+="/sbin/kpartx -a -p -part /dev/$name"
 ENV{DM_STATE}=="ACTIVE", ENV{DM_UUID}=="dmraid-*", \
-        RUN+="/sbin/kpartx -a -p -part /dev/$kernel"
+        RUN+="/sbin/kpartx -a -p -part /dev/$name"
 
 LABEL="kpartx_end"