linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* udevstart: a question
@ 2004-03-12 23:08 Ryan Reich
  2004-03-12 23:35 ` Greg KH
  0 siblings, 1 reply; 2+ messages in thread
From: Ryan Reich @ 2004-03-12 23:08 UTC (permalink / raw)
  To: linux-hotplug

If you respond, please CC me, since I'm not subscribed.

This isn't a problem so much as a puzzled query: what's the purpose of the udev
init script now that udevstart exists?  It does exactly the same thing except
create those symlinks which appeared in the udev-021 init script, except that it
is a standalone program.  In particular, it doesn't suffer from the vexing error
which arises when you try to create a /dev from scratch and bash complains about
the nonexistence of /dev/null from which to redirect standard input (though I'm
told sash doesn't do this; still, it's a bother).  You don't even need the init
script to start udevd, since it gets called if it doesn't already exist the
first time udevsend is called by hotplug.

Okay, I can see one purpose for the init script still: to "stop" udev.  This is
a reasonable objection to the previous paragraph; however, you have to ask
yourself what the point is of such a function.  Stopping udev removes all device
files from your /dev, which is undesirable.  I can see that one might like the
ability to replace the dynamic udev-managed /dev with a static /dev under some
circumstances; however, surely this can be arranged more elegantly by having the
init script mount a tmpfs or ramfs filesystem and then simply unmounting it to
reveal the old, static /dev below.

I suggest that the following method for managing /dev be used: create a tmpfs
filesystem on top of /dev either in an initrd or in an init script, and populate
it using udevstart.  To "stop" udev you simply unmount this filesystem.  The
extra symlinks are easy to take care of either in the initrd's /linuxrc or in
the init script, as now.

-- 
Ryan Reich
ryanr@uchicago.edu


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: udevstart: a question
  2004-03-12 23:08 udevstart: a question Ryan Reich
@ 2004-03-12 23:35 ` Greg KH
  0 siblings, 0 replies; 2+ messages in thread
From: Greg KH @ 2004-03-12 23:35 UTC (permalink / raw)
  To: linux-hotplug

On Fri, Mar 12, 2004 at 05:08:09PM -0600, Ryan Reich wrote:
> If you respond, please CC me, since I'm not subscribed.
> 
> This isn't a problem so much as a puzzled query: what's the purpose of the udev
> init script now that udevstart exists?

As a "example" of how you could intregrate udev into your distro if you
want to?

I agree, now that we have udevstart, the init script isn't really
needed.  But I'll keep it around for a while until all of the distros
figure out what they are going to do.

If nothing else, they can call udevstart within the init script :)

thanks,

greg k-h


-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id\x1470&alloc_id638&op=click
_______________________________________________
Linux-hotplug-devel mailing list  http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-03-12 23:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-03-12 23:08 udevstart: a question Ryan Reich
2004-03-12 23:35 ` Greg KH

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).