|
@@ -60,23 +60,22 @@ with a series of short descriptions of these.</para>
|
|
|
|
|
|
</sect1>
|
|
|
|
|
|
+&c6-mountproc;
|
|
|
|
|
|
<sect1 id="ch-system-chroot">
|
|
|
<title>Entering the chroot environment</title>
|
|
|
<?dbhtml filename="chroot.html" dir="chapter06"?>
|
|
|
|
|
|
-<para>It is time to enter the chroot environment in order to begin installing
|
|
|
-the packages we need. Before you can chroot, however, you need to become
|
|
|
-<emphasis>root</emphasis>, since only <emphasis>root</emphasis>
|
|
|
-can execute the <command>chroot</command> command.</para>
|
|
|
+<para>It is time to enter the chroot environment in order to begin building
|
|
|
+and installing your final LFS system.</para>
|
|
|
|
|
|
-<para>Just like earlier, ensure the LFS environment variable is set up properly
|
|
|
-by running <userinput>echo $LFS</userinput> and ensuring it shows the path to
|
|
|
-your LFS partition's mount point, which is
|
|
|
+<para>First check, just like earlier, that the LFS environment variable is set
|
|
|
+up properly by running <userinput>echo $LFS</userinput> and making sure it
|
|
|
+shows the path to your LFS partition's mount point, which is
|
|
|
<filename class="directory">/mnt/lfs</filename> if you followed our example.</para>
|
|
|
|
|
|
-<para>Become <emphasis>root</emphasis> and run the following command
|
|
|
-to enter the chroot environment:</para>
|
|
|
+<para>As <emphasis>root</emphasis>, run the following command to enter the
|
|
|
+chroot environment:</para>
|
|
|
|
|
|
<screen><userinput>chroot $LFS /tools/bin/env -i \
|
|
|
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
|
|
@@ -108,12 +107,12 @@ is switched off by passing the <emphasis>+h</emphasis> option to
|
|
|
<para>You have to make sure all the commands in the rest of this chapter and
|
|
|
in the following chapters are run from within the chroot environment.
|
|
|
If you ever leave this environment for any reason (rebooting for example),
|
|
|
-you must remember to again enter chroot and mount the proc and devpts
|
|
|
-file systems (discussed later) before continuing with the installations.</para>
|
|
|
+you must remember to first mount the proc and devpts file systems (discussed
|
|
|
+in the previous section) <emphasis>and</emphasis> enter chroot again before
|
|
|
+continuing with the installations.</para>
|
|
|
|
|
|
-<para>Note that the bash prompt will say "I have no name!" This is
|
|
|
-normal, as the <filename>/etc/passwd</filename> file has not been
|
|
|
-created yet.</para>
|
|
|
+<para>Note that the bash prompt will say "I have no name!" This is normal, as
|
|
|
+the <filename>/etc/passwd</filename> file has not been created yet.</para>
|
|
|
|
|
|
</sect1>
|
|
|
|
|
@@ -209,9 +208,6 @@ isn't precise, so we created here the directories that we think are needed.</par
|
|
|
</sect1>
|
|
|
|
|
|
|
|
|
-&c6-mountproc;
|
|
|
-
|
|
|
-
|
|
|
<sect1 id="ch-system-createfiles">
|
|
|
<title>Creating essential symlinks</title>
|
|
|
<?dbhtml filename="createfiles.html" dir="chapter06"?>
|