summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kpartx/kpartx.rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/kpartx/kpartx.rules b/kpartx/kpartx.rules
index 5a62d57..8978b73 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"