Ignore:
Timestamp:
06/29/2020 07:55:01 AM (4 years ago)
Author:
Thomas Trepl <thomas@…>
Branches:
multilib-10.1
Children:
c4804e8
Parents:
d4fdde6
Message:

Update to new lfs structure

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/multilib@11986 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 moved

Legend:

Unmodified
Added
Removed
  • chapter07/chroot.xml

    rd4fdde6 r37e35d2  
    66]>
    77
    8 <sect1 id="ch-system-chroot">
     8<sect1 id="ch-tools-chroot">
    99  <?dbhtml filename="chroot.html"?>
    1010
    1111  <title>Entering the Chroot Environment</title>
    1212
    13   <para>It is time to enter the chroot environment to begin building and
    14   installing the final LFS system. As user <systemitem
     13  <para>Now that all the packages which are required to build the rest of the
     14  needed tools are on the system, it is time to enter the chroot environment to
     15  finish installing the remaining temporary tools. This environment will be in
     16  use also for installing the final system. As user <systemitem
    1517  class="username">root</systemitem>, run the following command to enter the
    16   realm that is, at the moment, populated with only the temporary tools:</para>
     18  environment that is, at the moment, populated with only the temporary
     19  tools:</para>
    1720
    18 <screen role="nodump"><userinput>chroot "$LFS" /tools/bin/env -i \
     21<screen role="nodump"><userinput>chroot "$LFS" /usr/bin/env -i  \
    1922    HOME=/root                  \
    2023    TERM="$TERM"                \
    2124    PS1='(lfs chroot) \u:\w\$ ' \
    22     PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \
    23     /tools/bin/bash --login +h</userinput></screen>
     25    PATH=/bin:/usr/bin:/sbin:/usr/sbin \
     26    /bin/bash --login +h</userinput></screen>
    2427
    2528  <para>The <parameter>-i</parameter> option given to the <command>env</command>
     
    3033  variable inside chroot to the same value as outside chroot. This variable is
    3134  needed for programs like <command>vim</command> and <command>less</command>
    32   to operate properly.  If other variables are needed, such as
     35  to operate properly.  If other variables are desired, such as
    3336  <envar>CFLAGS</envar> or <envar>CXXFLAGS</envar>, this is a good place to set
    3437  them again.</para>
    3538
    3639  <para>From this point on, there is no need to use the
    37   <envar>LFS</envar> variable anymore, because all work will be restricted
     40  <envar>LFS</envar> variable anymore because all work will be restricted
    3841  to the LFS file system.  This is because the Bash shell is told that
    3942  <filename class="directory">$LFS</filename> is now the root
    4043  (<filename class="directory">/</filename>) directory.</para>
    4144
    42   <para>Notice that <filename class="directory">/tools/bin</filename> comes last
    43   in the <envar>PATH</envar>. This means that a temporary tool will no longer be
    44   used once its final version is installed. This occurs when the shell does not
     45  <para>Notice that <filename class="directory">/tools/bin</filename> is not
     46  in the <envar>PATH</envar>. This means that the cross toolchain will no longer be
     47  used in the chroot environment. This occurs when the shell does not
    4548  <quote>remember</quote> the locations of executed binaries&mdash;for this
    4649  reason, hashing is switched off by passing the <parameter>+h</parameter> option
     
    5659    environment. If you leave this environment for any reason (rebooting for
    5760    example), ensure that the virtual kernel filesystems are mounted as
    58     explained in <xref linkend="ch-system-bindmount"/> and <xref
    59     linkend="ch-system-kernfsmount"/> and enter chroot again before continuing
     61    explained in <xref linkend="ch-tools-bindmount"/> and <xref
     62    linkend="ch-tools-kernfsmount"/> and enter chroot again before continuing
    6063    with the installation.</para>
    6164  </note>
Note: See TracChangeset for help on using the changeset viewer.