:: [DNG] ¿A bug in eudev CD/DVD rules?
Góra strony
Delete this message
Reply to this message
Autor: Gonzalo Pérez de Olaguer Córdoba
Data:  
Dla: dng
Temat: [DNG] ¿A bug in eudev CD/DVD rules?
The file /lib/udev/rules.d/60-cdrom_id.rules provided
by the eudev package contains the following lines
(removed lines are marked with [...]):

# do not edit this file, it will be overwritten on update
[...]
# These rules will create symlinks for the CD/DVD reader, to help old
# programs which are unable to automatically discover the devices.
# The results are undefined for system with multiple CD/DVD devices.
ENV{ID_CDROM}=="?*",        SYMLINK+="cdrom", OPTIONS+="link_priority=-100"
ENV{ID_CDROM_CD_RW}=="?*",  SYMLINK+="cdrw",  OPTIONS+="link_priority=-100"
ENV{ID_CDROM_DVD}=="?*",    SYMLINK+="dvd",   OPTIONS+="link_priority=-100"
ENV{ID_CDROM_DVD_RW}=="?*", SYMLINK+="dvdrw", OPTIONS+="link_priority=-100"
[...]


As seen, the file should not be edited AND the results are undefined for
systems with multiple CD/DVD devices. That's my case.

I have an /etc/udev/rules.d/70-persistent-cd.rules file, inherited from old
times, that does just what I want, creating symlinks for each DVD unit,
identified by model, independently of kernel names and other issues.

In order to avoid the execution of those SYMLINK lines of the 'standard' rules
I have copied /lib/udev/rules.d/60-cdrom_id.rules to /etc/udev/rules.d/60-cdrom_id.rules
so the one in 'etc' will override the one in 'lib', and then I have removed those lines
from the 'etc' file.

It really interacts very bad with systems with multiple CD/DVD units.
¿Should this be considered a bug?

-- 
   Gonzalo Pérez de Olaguer Córdoba       salo@???
  -=- buscando empleo desde 1988 -=-       www.gpoc.es 


PGP: 3F87 CCE7 8B35 8C06 E637 2D57 5723 9984 718C A614