[oe] About having a static /dev

Dr. Michael Lauer mickey at vanille-media.de
Thu Apr 22 12:54:31 UTC 2010


Am 22.04.2010 um 14:46 schrieb Antonio Ospite:

> On Thu, 22 Apr 2010 12:55:43 +0100
> Phil Blundell <philb at gnu.org> wrote:
> 
>> On Thu, 2010-04-22 at 13:43 +0200, Antonio Ospite wrote:
>>> 2. If I install any package which depends on udev then udev is brought
>>>    in and the static layout is gone at the next boot.
>> 
>> I think your best option is probably to make udev be a DISTRO_FEATURE
>> and not set it for your own distribution.
>> 
>> If you genuinely want udev to be selected (for your particular DISTRO)
>> on a per-MACHINE basis then you'll have to invent some way to nobble its
>> startup script so that it just doesn't do anything on machines where it
>> isn't wanted.
>> 
> 
> A per-MACHINE way would be better IMHO, I am thinking about
> adding a check on something like /dev/.staticdev (suggested in [1]) to
> both udev init script and to the 'device' script from initscripts, and
> make the image class add the /dev/.staticdev file when
> IMAGE_DEV_MANAGER == "" (or maybe == "static" or "none"?)
> 
> Does this sound reasonable?

Please also handle the case where we neither want an IMAGE_DEV_MANAGER
nor static device population, since we use devtmpfs.

:M:





More information about the Openembedded-devel mailing list