diff --git a/chapter07/kernfs.xml b/chapter07/kernfs.xml index f34155d7b..8746ea1e9 100644 --- a/chapter07/kernfs.xml +++ b/chapter07/kernfs.xml @@ -24,41 +24,22 @@ mkdir -pv $LFS/{dev,proc,sys,run} - - 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 the kernel - populates /dev), 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 - - - Mounting and Populating /dev - The recommended method of populating the /dev directory with devices is to mount a - virtual filesystem (such as tmpfs) on the /dev directory, and allow the devices to be - created dynamically on that virtual filesystem as they are detected or - accessed. Device creation is generally done during the boot process - by Udev. Since this new system does not yet have Udev and has not yet - been booted, it is necessary to mount and populate /dev manually. This is accomplished by bind - mounting the host system's /dev - directory. A bind mount is a special type of mount that allows you to - create a mirror of a directory or mount point to some other location. Use - the following command to achieve this: + During a normal boot, the kernel automatically mounts the + devtmpfs filesystem on the + /dev directory, and allow the + devices to be created dynamically on that virtual filesystem as they + are detected or accessed. Device creation is generally done during the + boot process by Udev. Since this new system does not yet have Udev and + has not yet been booted, it is necessary to mount and populate + /dev manually. This is + accomplished by bind mounting the host system's + /dev directory. A bind mount is + a special type of mount that allows you to create a mirror of a + directory or mount point to some other location. Use the following + command to achieve this: mount -v --bind /dev $LFS/dev