chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
6763235
)
[PATCH] symlink dm-[0-9]* rule
author
ext.devoteam.varoqui@sncf.fr
<ext.devoteam.varoqui@sncf.fr>
Fri, 20 Feb 2004 01:45:37 +0000
(17:45 -0800)
committer
Greg KH
<gregkh@suse.de>
Wed, 27 Apr 2005 04:32:29 +0000
(21:32 -0700)
etc/udev/udev.rules
patch
|
blob
|
history
diff --git
a/etc/udev/udev.rules
b/etc/udev/udev.rules
index e1c2cbe91efd5c9f0973cc40c25e9321967a99b9..6e6bf4786bc9c4e61f6f2059941d68140c6e7efa 100644
(file)
--- 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"
# 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"
# DRI devices always go into a subdirectory (as per the LSB spec)
KERNEL="card*", NAME="dri/card%n"