diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index 44ec75c9e..53073c013 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -67,15 +67,9 @@ with a series of short descriptions of these. It is time to enter the chroot environment in order to begin building -and installing your final LFS system. - -First check, just like earlier, that the LFS environment variable is set -up properly by running echo $LFS and making sure it -shows the path to your LFS partition's mount point, which is -/mnt/lfs if you followed our example. - -As root, run the following command to enter the -chroot environment: +and installing your final LFS system. Still as root run +the following command to enter the small world that is, at the moment, +populated with only the temporary tools: chroot $LFS /tools/bin/env -i \     HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ diff --git a/chapter06/mountproc.xml b/chapter06/mountproc.xml index d1d91d9c1..381786f57 100644 --- a/chapter06/mountproc.xml +++ b/chapter06/mountproc.xml @@ -9,31 +9,35 @@ can be mounted as many times and in as many places as you like, thus it's not a problem that these file systems are already mounted on your host system, especially so because they are virtual file systems. -First you need to become root, since probably only -root can mount these file systems. +First make the mount points for these filesystems: + +mkdir -p $LFS/{proc,dev/pts} + +Now become root, since only +root can mount file systems in unusual places. Then +check again that the LFS environment variable is set correctly by running +echo $LFS and making sure it shows the path to your LFS +partition's mount point, which is /mnt/lfs if you followed our example. The proc file system is the process information pseudo file system through which the kernel provides information about the -status of the system. Mount it on /proc -with: +status of the system. Mount it with: -mount proc /proc -t proc +mount proc $LFS/proc -t proc -The devpts file system was mentioned earlier and is -now the most common way for pseudo terminals (PTYs) to be implemented. +The devpts file system is now the most common way +for pseudo terminals (PTYs) to be implemented. Mount it with: -The devpts file system is mounted on -/dev/pts by running: +mount devpts $LFS/dev/pts -t devpts -mount devpts /dev/pts -t devpts - -Should this command fail with an error to the effect of: +This last command might fail with an error to the effect of:
filesystem devpts not supported by kernel
-The most likely cause is that your host system's kernel was compiled -without support for the devpts file system. You can check which file systems -your kernel supports by peeking into its internals with a command such as +The most likely cause for this is that your host system's kernel was +compiled without support for the devpts file system. You can check which file +systems your kernel supports by peeking into its internals with cat /proc/filesystems. If a file system type named devfs is listed there, then we'll be able to work around the problem by mounting the host's devfs file system on top of the new