Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 312299 - sys-fs/udev: disable all generation of persistent rules
Summary: sys-fs/udev: disable all generation of persistent rules
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-03-30 21:21 UTC by Nick Leippe
Modified: 2010-04-09 08:52 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nick Leippe 2010-03-30 21:21:51 UTC
+++ This bug was initially created as a clone of Bug #259495 +++

This is still an issue with udev-149.

I have created my own custom udev rules in
/etc/udev/rules.d/70-persistent-cd.rules, and every boot it keeps adding
additional symlinks for the same devices.

I have set persistent_cd_disable="yes" in /etc/conf.d/udev to no avail--it
keeps doing it.

This is really annoying, since it makes configuring some gui apps a pain when
devices show up two/three times.
(I have 3 optical drives, thus xxx0-2 is already a lot of links, I don't need
xxx3-5 as well)


The rules I create are of the form:
ATTRS{vendor}=="LITE-ON ", ATTRS{model}=="DVDRW LH-20A1P  ", SYMLINK+="cdrom"

The rules it keeps generating are like:
SUBSYSTEM=="block", ENV{ID_CDROM}=="?*",
ENV{ID_PATH}=="pci-0000:00:06.0-scsi-1:0:0:0", SYMLINK+="cdrom5",
ENV{GENERATED}="1"

My rule is more specific. I should hope it would be able to see that the device
has already been matched by a rule and not generate a new one.

I don't specify pci/scsi device path in my rule because sometimes I change
around my hardware and the last thing I want is a moving target--that's the
whole point of udev naming rules.

I just need a way to turn this behavior off.


Reproducible: Always
Comment 1 Martin Väth 2010-03-31 10:43:39 UTC
(In reply to comment #0)
> ATTRS{vendor}=="LITE-ON ", ATTRS{model}=="DVDRW LH-20A1P  ", SYMLINK+="cdrom"

You haven't set ENV{GENERATED}="1"

> I should hope it would be able to see that the device
> has already been matched by a rule

There are ENV{GENERATED}="1" or OPTIONS="last_rule" to modify control flow.

I think you should post such user questions in the forums: bugzilla is not
meant for general user support.
Comment 2 Panagiotis Christopoulos (RETIRED) gentoo-dev 2010-04-09 08:51:31 UTC
Does what Martin said, helps you? see also http://www.gentoo.org/doc/en/udev-guide.xml . If you 're *sure* that you want from us to proccess this bug you are free to reopen it. I resolve it as NEEDINFO. (Paste your emerge --info" and "emerge -pv udev" output, if you reopen.) Thank you for your report.