Skip to Content.
Sympa Menu

sm-discuss - Re: [SM-Discuss] udex rules not working right

sm-discuss AT lists.ibiblio.org

Subject: Public SourceMage Discussion List

List archive

Chronological Thread  
  • From: Arwed von Merkatz <v.merkatz AT gmx.net>
  • To: SM Discuss <sm-discuss AT lists.ibiblio.org>
  • Subject: Re: [SM-Discuss] udex rules not working right
  • Date: Tue, 10 Jan 2006 19:44:56 +0100

On Tue, Jan 10, 2006 at 10:34:22AM -0800, Eric Sandall wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Mon, 9 Jan 2006, Robin Cook wrote:
> > This is the third machine in a row that the udev rules are not working
> > correctly.
> >
> > The /dev/null is getting set to 600 instead of 666. Also none of the
> > MODE changes I put in 00-local.rules gets set.
> >
> > The oly way I can get things to work is to comment out the first rule
> > KERNEL="*", OWNER="root" GROUP="root", MODE="0600"
> >
> > And then make all my other MODE changes in 50-default.rules
>
> I believe this is caused by udev using the first matching rule it
> finds. Therefore (and I haven't gone and read any documentation, just
> guessing here ;)) we would want the generic rules listed last (e.g.
> 99-local.rules).

In fact udev uses _all_ rules that match. If two of those specify the
same attributes the last one is used.
For local rules that should override any rules in 50-default, use
OPTIONS="last_rule".

--
Arwed v. Merkatz Source Mage GNU/Linux developer
http://www.sourcemage.org




Archive powered by MHonArc 2.6.24.

Top of Page