1 |
Am Mon, 21 Jan 2013 21:56:00 -0600 |
2 |
schrieb »Q« <boxcars@×××.net>: |
3 |
|
4 |
> udev-197-r3 gave me this postinstall warning: |
5 |
> |
6 |
> Upstream has removed the persistent-cd rules generator. If you need |
7 |
> persistent names for these devices, place udev rules for them |
8 |
> in /etc/udev/rules.d. |
9 |
> |
10 |
> Well, I have had such a rule for a long time, and it worked ok until I |
11 |
> installed udev-197, which seems to be ignoring it. I'm at a loss to |
12 |
> see what's wrong. |
13 |
> |
14 |
> Here's /etc/udev/rules.d/12-opticaldrive.rules, just one line: |
15 |
> |
16 |
> KERNEL=="sr0", SUBSYSTEM=="block", NAME="opticaldrive", SYMLINK+="%k", SYMLINK+="cdrom", SYMLINK+="cdrw", SYMLINK+="dvd", SYMLINK+="dvdrom", SYMLINK+="dvdrw" |
17 |
> |
18 |
> And here's the first part of udevadm info for the device: |
19 |
> |
20 |
> looking at device '/devices/pci0000:00/0000:00:1f.2/ata2/host1/target1:0:0/1:0:0:0/block/sr0': |
21 |
> KERNEL=="sr0" |
22 |
> SUBSYSTEM=="block" |
23 |
> DRIVER=="" |
24 |
> ATTR{ro}=="0" |
25 |
> ATTR{size}=="4" |
26 |
> ATTR{stat}==" 0 0 0 0 0 0 0 0 0 0 0" |
27 |
> ATTR{range}=="1" |
28 |
> ATTR{discard_alignment}=="0" |
29 |
> ATTR{events}=="media_change eject_request" |
30 |
> ATTR{ext_range}=="1" |
31 |
> ATTR{events_poll_msecs}=="-1" |
32 |
> ATTR{alignment_offset}=="0" |
33 |
> ATTR{inflight}==" 0 0" |
34 |
> ATTR{removable}=="1" |
35 |
> ATTR{capability}=="119" |
36 |
> ATTR{events_async}=="" |
37 |
|
38 |
Well, I did the udev upgrade, and the following rules in |
39 |
/etc/udev/rules.d/70-persistent-cd.rules still work: |
40 |
|
41 |
KERNEL=="sr0", SYMLINK+="cdrom", ENV{GENERATED}="1" |
42 |
KERNEL=="sr0", SYMLINK+="cdrw", ENV{GENERATED}="1" |
43 |
KERNEL=="sr0", SYMLINK+="dvd", ENV{GENERATED}="1" |
44 |
KERNEL=="sr0", SYMLINK+="dvdrw", ENV{GENERATED}="1" |
45 |
|
46 |
I don't really think it's that the symlinks are spread out over four lines, but |
47 |
you can try it anyway. The ENV{GENERATED} bit is left over from the |
48 |
auto-generated rule; I have my doubts regarding its necessity. |
49 |
|
50 |
[ Luckily for me, I had no problems upgrading udev, save for a change in |
51 |
the naming scheme of the files in /dev/input/by-id/, which screwed up my |
52 |
pulseaudio settings (I use the volume keys on my keyboard), which took all of 1 |
53 |
minute to fix after I noticed pulseaudio wasn't starting. ] |
54 |
|
55 |
HTH |
56 |
-- |
57 |
Marc Joliet |
58 |
-- |
59 |
"People who think they know everything really annoy those of us who know we |
60 |
don't" - Bjarne Stroustrup |