summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2009-11-21 21:29:52 +0100
committerChristophe Varoqui <christophe.varoqui@free.fr>2009-11-22 01:06:07 +0100
commit4bcc93b8c01ca2b491d471c253ed75d8092a3705 (patch)
tree5f438ddec38b1fdb0a10eaac531f9b91dd4ff426
parenta9addd37d200a9a35e5948b0c31d3108d913c0be (diff)
downloadmultipath-tools-4bcc93b8c01ca2b491d471c253ed75d8092a3705.tar.gz
multipath-tools-4bcc93b8c01ca2b491d471c253ed75d8092a3705.tar.bz2
multipath-tools-4bcc93b8c01ca2b491d471c253ed75d8092a3705.zip
multipath-toosl: Use current name of the divice node ($name)
instead of the kernel's name ($kernel). Otherwise we might end up looking at a wrong or nonexistant node.
-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"