projects
/
platform
/
upstream
/
multipath-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a9addd3
)
multipath-toosl: Use current name of the divice node ($name)
author
Guido Günther
<agx@sigxcpu.org>
Sat, 21 Nov 2009 20:29:52 +0000
(21:29 +0100)
committer
Christophe 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
patch
|
blob
|
history
diff --git
a/kpartx/kpartx.rules
b/kpartx/kpartx.rules
index
5a62d57
..
8978b73
100644
(file)
--- 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"