diff mbox

multipath-toosl: Use current name of the divice node ($name)

Message ID 20091121202952.GA7011@bogon.sigxcpu.org (mailing list archive)
State New, archived
Headers show

Commit Message

Guido Günther Nov. 21, 2009, 8:29 p.m. UTC
None
diff mbox

Patch

diff --git a/kpartx/kpartx.rules b/kpartx/kpartx.rules
index f32c718..425afd8 100644
--- a/kpartx/kpartx.rules
+++ b/kpartx/kpartx.rules
@@ -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"