summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorext.devoteam.varoqui@sncf.fr <ext.devoteam.varoqui@sncf.fr>2004-02-19 17:45:37 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:32:29 -0700
commit3217d739fb0fb17656dfdfc5d2a2aec389dcc811 (patch)
tree960693fee5a483d2b0bbc8f71b370c4f5eaf22e1
parent67632351ec672ea7891a43fbceec696690dd940b (diff)
[PATCH] symlink dm-[0-9]* rule
-rw-r--r--etc/udev/udev.rules5
1 files changed, 3 insertions, 2 deletions
diff --git a/etc/udev/udev.rules b/etc/udev/udev.rules
index e1c2cbe91e..6e6bf4786b 100644
--- a/etc/udev/udev.rules
+++ b/etc/udev/udev.rules
@@ -37,8 +37,9 @@ KERNEL="ttyUSB0", NAME="pl2303"
# if this is a ide cdrom, name it the default name, and create a symlink to cdrom
BUS="ide", KERNEL="*[!0-9]", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", NAME="%k", SYMLINK="cdrom"
-# device mapper creates its own device nodes so ignore these
-KERNEL="dm-[0-9]*", NAME=""
+# create a symlink named after the device map name
+# note devmap_name comes with extras/multipath
+KERNEL="dm-[0-9]*", PROGRAM="/sbin/devmap_name %M %m", NAME="%k", SYMLINK="%c"
# DRI devices always go into a subdirectory (as per the LSB spec)
KERNEL="card*", NAME="dri/card%n"