On Sat, Dec 21, 2013 at 10:11:06AM -0800, Bryan Kadzban wrote:
> On Sat, Dec 21, 2013 at 05:56:37PM +0100, Armin K. wrote:
> > > In latest lfs book, the "Preparing Virtual File Systems" page contains:
> > > 
> > > 6.2.1. Creating Initial Device Nodes
> > > 
> > > When the kernel boots the system, it requires the presence of a few
> > > device nodes, in particular the console and null devices. The device
> > > nodes must be created on the hard disk so that they are available before
> > > udevd has been started, and additionally when Linux is started with
> > > init=/bin/bash. Create the devices by running the following commands:
> > > 
> > > mknod -m 600 $LFS/dev/console c 5 1
> > > mknod -m 666 $LFS/dev/null c 1 3
> > > 
> > > 
> > > 
> > > These are not necessarry anymore. devtmpfs is a requirement for newer
> > > udev versions and is mounted by the kernel before even init has been
> > > invoked.
> > > 
> > 
> > This also might be related that my kernel is built with
> > CONFIG_DEVTMPFS_MOUNT=y kernel option. Someone please verify before
> > taking action, if any.
> 
> My machine does *not* mount devtmpfs automatically; the bootscripts (and
> specifically mountkernfs) are required.  Which means that init=/bin/bash
> won't work without the static files, as the book says.  :-)
> 

 Devtmpfs has been in the book, on the kernel page in chapter 8,
since LFS-7.1 and I agree with Armin that the newly-installed system
doesn't need /dev/console or /dev/null.

ĸen
-- 
das eine Mal als Tragödie, dieses Mal als Farce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to