mirror of
https://github.com/systemd/systemd.git
synced 2024-12-23 21:35:11 +03:00
[PATCH] udev - fix cdrom symlink rule
We only need to look at the device, not at the partitions.
This commit is contained in:
parent
51a8bb2f36
commit
0c25b2066d
@ -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=""
|
||||
|
Loading…
Reference in New Issue
Block a user