From: ext.devoteam.varoqui@sncf.fr Date: Fri, 20 Feb 2004 01:45:37 +0000 (-0800) Subject: [PATCH] symlink dm-[0-9]* rule X-Git-Tag: 018~5 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3217d739fb0fb17656dfdfc5d2a2aec389dcc811;p=systemd [PATCH] symlink dm-[0-9]* rule --- diff --git a/etc/udev/udev.rules b/etc/udev/udev.rules index e1c2cbe9..6e6bf478 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"