Make local udev rules higher prioritized#13059
Conversation
|
I've just noticed that #10646 was caused by this, too. |
|
Thanks for the headsup, I'll check that, but I don't think so. @abbradar: did you get rules applied after a switch at all? |
|
Yes, and it also doesn't look to me this would fix your problem. FWIW, I have thought that relative paths won't work in udev altogether (same as in systemd), and |
|
This will actually make some rules lower priority, such as: Because of the |
|
Hm, I see the problem. What do you think of replacing |
80e0714 to
88de910
Compare
|
I went ahead and implemented the proposed idea. In this incarnation I remove |
|
I don't know enough about |
|
Yeah, indeed -- removing I think this is good to go and should remove much of the confusion around udev rules not working, but I want @edolstra comment as someone who's more knowledgeable on udev. What do you think? tl;dr: this splits out |
88de910 to
751483c
Compare
|
Another possibility is to do your original proposal, and simply document the changed semantics in the release notes. For instance, in the example I posted, the fix is pretty easy (just remove the |
|
Hm, well -- truth be told I haven't seen much udev rules, so if pre-rules are not that much of a common case (the only one I've seen is your example), I think leaving just one option is better. Okay, let's do this! I'll add corresponding entries to the changelog. |
751483c to
934813e
Compare
|
The original patch is back, I've also added a changelog entry for it. Should be good now -- I'll merge this in few days unless we discover any problems with this. |
934813e to
32df5ed
Compare
Make local udev rules higher prioritized
I've spent some time debugging why wouldn't my udev rule work until I noticed that the rules won't apply because some other ones later override them. I wouldn't expect that user-defined rules would be overridden by anything. This could be changed by naming rules' files
99-local.{rules,hwdb}which I did and it fixed my issue. I don't have good knowledge of udev so this might not actually be a good idea. cc @edolstra as one who reviewed my udev changes before.EDIT: added some sense -- I shouldn't make PRs laaate in the night ^^".