Re: [PATCH] Driver Core: devtmpfs - kernel-maintained tmpfs-based/dev

From: Greg KH
Date: Mon Aug 10 2009 - 11:45:25 EST


On Sat, Aug 08, 2009 at 07:07:56PM -0400, David Dillow wrote:
> On Thu, 2009-08-06 at 11:31 -0700, Greg KH wrote:
> > On Thu, Aug 06, 2009 at 12:20:58PM -0400, David Dillow wrote:
> > > If you use mount by label or UUID, you still need udev (or other tools)
> > > in the initrd to find the right disk, correct?
> >
> > Yes, you would.
> >
> > > And for distros that want to support that, does this really reduce the
> > > amount of code in the initrd?
> >
> > Yes it does, see the code in the Novell Moblin images for an example of
> > how to use devtmpfs with udev for how to do this.
>
> I followed up with Greg offline to make sure I was looking at the right
> thing, but the upshot is that Moblin does not use an initrd and devtmpfs
> does not in any way reduce the amount of code for those distros that
> want to support more than the root=/dev/blah syntax.

Like Scott points out, this option now allows distros to use blkid
directly instead of udev if they want to implement things like this
without udev.

> Given Eric and Arjan's numbers about the time it takes to populate /dev
> from /sys -- pointing the speed problem squarely at udev or the ruleset
> -- I don't see much of a win for devtmpfs other than avoiding a
> static /dev to make init=/bin/sh work.

That's a very big win right there, don't you think? Also, embedded and
rescue disks also would like it for this very reason.

> You cannot rely on it for a hotplug disk such as USB, as it doesn't do
> the root=LABEL=usbroot that you'd want to do since the location is not
> stable.

Again, not all the world requires such labels.

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/