summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2009-11-21 18:10:10 +0100
committerChristophe Varoqui <christophe.varoqui@free.fr>2009-11-22 01:03:29 +0100
commita9addd37d200a9a35e5948b0c31d3108d913c0be (patch)
tree1e907ae82fdbb578948e48f47ca8cb42088a34c7
parent39912314d3eaea6c098c1c41ba69d1cc8e66ba10 (diff)
downloadmultipath-tools-a9addd37d200a9a35e5948b0c31d3108d913c0be.tar.gz
multipath-tools-a9addd37d200a9a35e5948b0c31d3108d913c0be.tar.bz2
multipath-tools-a9addd37d200a9a35e5948b0c31d3108d913c0be.zip
multipath-tools: fix udev rule for dmraid
Hi, attach patch fixes the udev rule for dmraid by not abusing the mpath prefix. It also drops the superflous path from kpartx_id. Cheers, -- Guido From: Hannes Reinecke <hare@suse.de> Date: Tue, 24 Jun 2008 16:38:37 +0200 Subject: [PATCH] Fix udev rules for dmraid The kpartx_id program is located under /lib/udev, so we don't need to call it with the full pathname. And we should also create persistent links for dmraid tables.
-rw-r--r--kpartx/kpartx.rules4
1 files changed, 2 insertions, 2 deletions
diff --git a/kpartx/kpartx.rules b/kpartx/kpartx.rules
index f32c718..5a62d57 100644
--- a/kpartx/kpartx.rules
+++ b/kpartx/kpartx.rules
@@ -9,7 +9,7 @@ ACTION=="remove", GOTO="kpartx_end"
ENV{DM_TABLE_STATE}!="LIVE", GOTO="kpartx_end"
-ENV{DM_UUID}=="?*", IMPORT{program}=="/lib/udev/kpartx_id %M %m $env{DM_UUID}"
+ENV{DM_UUID}=="?*", IMPORT{program}=="kpartx_id %M %m $env{DM_UUID}"
OPTIONS="link_priority=50"
@@ -18,7 +18,7 @@ ENV{DM_UUID}=="mpath-*", \
SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_NAME}"
# Create persistent links for dmraid tables
-ENV{DM_UUID}=="mpath-*", \
+ENV{DM_UUID}=="dmraid-*", \
SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_NAME}"
# Create persistent links for partitions