linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David VomLehn <dvomlehn@cisco.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: [ANNOUNCE] udev 125 release
Date: Tue, 29 Jul 2008 01:53:43 +0000	[thread overview]
Message-ID: <488E7827.7010106@cisco.com> (raw)
In-Reply-To: <1216627334.7816.12.camel@linux.site>

Marco d'Itri wrote:
> On Jul 29, David VomLehn <dvomlehn@cisco.com> wrote:
> 
>> If I understand what is meant by "on-the-fly generated rules", these are 
>> not static and so don't belong under /etc. I think an FHS-conforming 
>> place for these would be under /var somewhere, such as /var/lib/udev. 
> /var may not be available yet when the files are needed, arguing to move
> them there is pointless.
> Also, they can be edited manually while /var data cannot.

I don't know of any problems with editing /var data manually, but your point 
about /var not being available early enough to run udev is certainly an important 
point to consider.

Note that embedded systems are not the only case where read-only root filesystems 
may arise. They are also used when your root filesystem is on a CDROM or DVD, or 
when you have a read-only root filesystem so you can network-mount it on multiple 
nodes. These cases influenced the Filesystem Hierarchy Standard people to make 
/etc read-only. So, I think  that using /etc for "on-the-fly" generated udev 
rules is an issue in a number of situations.

This looks like it might be a chicken-and-egg issue, where you may need to run 
udev in order to be able to mount a writable filesystem in which to store rules 
used by udev. I'm no expert on udev and what drove the need for this feature, but 
is it possible that you wouldn't need to generate rules *on-the-fly* until after 
mounting /var? If that were the case, you could still put the generated rules there.

Another possibility is simply to add a /var/lib/udev directory to the directories 
in which rules may reside. If you have a read-only root filesystem, you'll just 
have to mount /var before you can generate your own rules.




     - - - - -                              Cisco                            - - - - -         
This e-mail and any attachments may contain information which is confidential, 
proprietary, privileged or otherwise protected by law. The information is solely 
intended for the named addressee (or a person responsible for delivering it to 
the addressee). If you are not the intended recipient of this message, you are 
not authorized to read, print, retain, copy or disseminate this message or any 
part of it. If you have received this e-mail in error, please notify the sender 
immediately by return e-mail and delete it from your computer.


  parent reply	other threads:[~2008-07-29  1:53 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-07-21  8:02 [ANNOUNCE] udev 125 release Kay Sievers
2008-07-21  9:05 ` Marco d'Itri
2008-07-21 10:56 ` Matthias Schwarzott
2008-07-21 11:14 ` Kay Sievers
2008-07-21 11:19 ` Kay Sievers
2008-07-21 15:47 ` David Zeuthen
2008-07-22  0:06 ` David Zeuthen
2008-07-22  7:57 ` Kay Sievers
2008-07-22 13:15 ` Doug Goldstein
2008-07-28 23:08 ` David VomLehn
2008-07-28 23:32 ` Marco d'Itri
2008-07-29  1:53 ` David VomLehn [this message]
2008-07-29  2:10 ` Marco d'Itri

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=488E7827.7010106@cisco.com \
    --to=dvomlehn@cisco.com \
    --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).