On Tue, 28 Dec 2010 11:45:30 -0700
John Harrigan <jfharri...@fedex.com> wrote:

> * piper.g...@gmail.com (Dec 28, 2010 @ 13:23-0500):
> > In section 6.2.1 we create a couple of device nodes: a console device,
> > and a null device.
> > 
> > Then in the following section we mount /dev of the host platform to be
> > mirrored at $LFS/dev.
> > 
> > What's the point of creating the 2 devices in section 6.2.1 if the
> > devices will appear anyways in the mirrored device folder?
> 
> The point is to have those 2 devices exist as part of the root filesystem
> so that they are available during early boot before things like udev
> can be started.

Unless you compile your kernel with:
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
In which case the kernel mounts a tmpfs on /dev and populates it with
device nodes before udev gets started. I don't create the console or
null dev nodes (I deviate from the book) as the kernel creates them
every time it boots.

Andy
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to