From: kay.sievers@vrfy.org Date: Thu, 12 Feb 2004 06:28:47 +0000 (-0800) Subject: [PATCH] udev - fix cdrom symlink rule X-Git-Tag: 017~27 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=0c25b2066d06ae1f75d3e9f3f8e1e31d952906c5 [PATCH] udev - fix cdrom symlink rule We only need to look at the device, not at the partitions. --- diff --git a/etc/udev/udev.rules b/etc/udev/udev.rules index 98d2ceccc..344304dd9 100644 --- a/etc/udev/udev.rules +++ b/etc/udev/udev.rules @@ -35,7 +35,7 @@ KERNEL="ttyUSB0", NAME="pl2303" #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=""