From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kay Sievers Date: Sun, 08 Feb 2004 15:24:35 +0000 Subject: [PATCH] udev - fix cdrom symlink rule Message-Id: <20040208152435.GC10390@vrfy.org> MIME-Version: 1 Content-Type: multipart/mixed; boundary="oyUTqETQ0mS9luUI" List-Id: To: linux-hotplug@vger.kernel.org --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline We only need to look at the device, not at the partitions. --oyUTqETQ0mS9luUI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline; filename="02-cdrom-symlink.patch" ===== etc/udev/udev.rules 1.26 vs edited ===== --- 1.26/etc/udev/udev.rules Thu Jan 15 22:42:58 2004 +++ edited/etc/udev/udev.rules Sun Feb 8 16:03:06 2004 @@ -35,7 +35,7 @@ #KERNEL="tty*", NAME="vc/%n" # if this is a ide cdrom, name it the default name, and create a symlink to cdrom -BUS="ide", PROGRAM="/bin/cat /proc/ide/%k/media", RESULT="cdrom", NAME="%k", SYMLINK="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="" --oyUTqETQ0mS9luUI-- ------------------------------------------------------- The SF.Net email is sponsored by EclipseCon 2004 Premiere Conference on Open Tools Development and Integration See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. http://www.eclipsecon.org/osdn _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel