|
From: Kay Sievers <kay.sievers <at> vrfy.org>
Subject: Re: new version of udev has different cd/dvd devices Newsgroups: gmane.linux.hotplug.devel Date: 2005-12-28 23:29:36 GMT (4 years, 6 weeks, 1 day, 2 hours and 59 minutes ago)
On Wed, Dec 28, 2005 at 11:50:00PM +0100, Marco d'Itri wrote:
> On Dec 28, Moshe Yudkowsky <msha5_17 <at> bl.com> wrote:
>
> > The latest udev (0.079) puts the second drive only for /dev/cdrom, cdrw,
> > dvd, and dvdrw.
> Do not use %e in rules.
Yes, %e will be removed in one of the next versions for that reason. It
never worked reliably outside of udevstart, which is no longer
recommended to use.
Yuu can match on ENV{ID_PATH} with custom rules for every device. On
SUSE, the system management creates rules on installation or update, to
have always the same names for optical drives, regardless of the order
of discovery:
$ cat /etc/udev/rules.d/65-cdrom.rules
# cdrom links generated by YaST2
#
SUBSYSTEM=="block", ENV{ID_PATH}=="pci-0000:00:1f.2-scsi-1:0:0:0", SYMLINK+="cdrecorder cdrom"
Distros could also have a "default" rule, which catches unconfigured
devices and automatically creates a rule for them to keep the name
stable across reboots.
Kay
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
|
|
|