From: David Zeuthen <david@fubar.dk>
To: linux-hotplug@vger.kernel.org
Subject: Re: default udev rules
Date: Mon, 11 Aug 2008 15:18:28 +0000 [thread overview]
Message-ID: <1218467908.3834.18.camel@x61.fubar.dk> (raw)
In-Reply-To: <1218277281.31266.32.camel@lgn.site>
On Mon, 2008-08-11 at 14:03 +0100, Scott James Remnant wrote:
> I've yet to have it explained to me why udev rules suddenly aren't
> configuration files. They've been configuration files for years,
False. The rules have lived in /etc though so many many people and
distros mistakenly assume they can be edited and that they are
configuration files. It's a common misconception.
FWIW, if you edit some udev rules then your system will most likely
break in one way or another. Look at it this way, what do you think
would happen if a user changed any of these rules
"KERNEL="device-mapper", NAME="mapper/control"
RUN+="socket:/org/freedesktop/hal/udev_event"
Thanks for playing.
Of course, one mans configuration file is another mans system
implementation detail. Me? I see the new policy of shipping the default
rules in /lib just as a reinforcement of the fact that (most) udev rules
are not to be edited by users nor admins. Of course the world isn't as
black as white as you paint it hence why udev will still read files
from /etc/udev/rules.d so hackers, ppl building embedded systems and
hobbyist users can override rules there.
In fact, we should put
# DO NOT EDIT. This is not a configuration file, see the udev man page for details
in the top of each udev rule. Then said man page can tell the user what
to do. Kay?
> and we
> encourage people to edit them.
Very bad advice. Please stop doing that. If you encourage people to edit
these files then lots of "useful" HOWTO's and user forums will tell
newbies to edit them to "fix" their system (instead of getting the OS
vendor to fix it properly). Then said users will end up editing a file
with vital udev rules and then end up with either a) .rpmnew/.rpmorig
files (and a broken system); or b) they get exposed to crappy dialogs
like
http://weblogs.mozillazine.org/gerv/archives/2008/04/upgrading_to_hardy.html
depending on how the distro deals with configuration file changes.
IMNSHO, both are bad approaches in their own way.
The solution is to stop offering configuration knobs. Especially when
none are needed. The move of rules to /lib from /etc is just, again, a
reinforcement of that view from upstream.
FWIW, it's off-putting to hear blanket statements like "my rules are so
much better" and "it's been like that for year" etc. ; that's _not_ how
to deal with upstream. Send patches. Thanks.
David
next prev parent reply other threads:[~2008-08-11 15:18 UTC|newest]
Thread overview: 62+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-09 10:21 default udev rules Kay Sievers
2008-08-09 15:23 ` Marco d'Itri
2008-08-09 18:55 ` Greg KH
2008-08-09 19:30 ` Marco d'Itri
2008-08-09 19:44 ` Greg KH
2008-08-09 20:03 ` Kay Sievers
2008-08-10 18:07 ` Scott James Remnant
2008-08-10 19:18 ` Marco d'Itri
2008-08-10 19:25 ` Greg KH
2008-08-10 19:47 ` Kay Sievers
2008-08-10 20:35 ` Kay Sievers
2008-08-11 8:45 ` Kay Sievers
2008-08-11 8:58 ` Marco d'Itri
2008-08-11 9:01 ` Marco d'Itri
2008-08-11 13:03 ` Scott James Remnant
2008-08-11 14:54 ` Kay Sievers
2008-08-11 15:18 ` David Zeuthen [this message]
2008-08-11 15:20 ` Scott James Remnant
2008-08-11 15:21 ` Scott James Remnant
2008-08-11 15:27 ` Kay Sievers
2008-08-11 15:28 ` Kay Sievers
2008-08-11 15:35 ` Scott James Remnant
2008-08-11 15:36 ` Scott James Remnant
2008-08-11 15:42 ` Scott James Remnant
2008-08-11 15:50 ` Kay Sievers
2008-08-11 16:00 ` Scott James Remnant
2008-08-11 16:06 ` piterpk
2008-08-11 16:14 ` Marco d'Itri
2008-08-11 16:19 ` Kay Sievers
2008-08-11 16:26 ` Marco d'Itri
2008-08-11 16:34 ` Kay Sievers
2008-08-11 16:37 ` Greg KH
2008-08-11 16:41 ` Kay Sievers
2008-08-11 16:45 ` Marco d'Itri
2008-08-11 16:48 ` Marco d'Itri
2008-08-11 16:48 ` Kay Sievers
2008-08-11 16:53 ` Scott James Remnant
2008-08-11 16:54 ` Marco d'Itri
2008-08-11 16:58 ` Greg KH
2008-08-11 17:00 ` Kay Sievers
2008-08-11 17:01 ` Kay Sievers
2008-08-11 17:06 ` Scott James Remnant
2008-08-11 17:08 ` Scott James Remnant
2008-08-11 17:10 ` Scott James Remnant
2008-08-11 17:24 ` Kay Sievers
2008-08-11 17:37 ` David Zeuthen
2008-08-11 17:40 ` Scott James Remnant
2008-08-11 18:00 ` Scott James Remnant
2008-08-11 18:01 ` Kay Sievers
2008-08-11 18:06 ` Scott James Remnant
2008-08-11 22:26 ` Greg KH
2008-08-11 22:28 ` Greg KH
2008-08-11 22:29 ` Greg KH
2008-08-11 23:40 ` Scott James Remnant
2008-08-11 23:41 ` Scott James Remnant
2008-08-12 0:00 ` Greg KH
2008-08-12 20:32 ` Kay Sievers
2008-08-13 1:53 ` H. Peter Anvin
2008-08-13 1:55 ` H. Peter Anvin
2008-11-18 17:39 ` Harald Hoyer
2008-11-18 17:52 ` Kay Sievers
2008-11-19 2:09 ` Piter PUNK
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1218467908.3834.18.camel@x61.fubar.dk \
--to=david@fubar.dk \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).