Changeset 387a32af for chapter07/chroot.xml
- Timestamp:
- 06/11/2020 03:13:43 AM (4 years ago)
- Branches:
- 10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 11.1, 11.1-rc1, 11.2, 11.2-rc1, 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/lfs-next, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/pip3, xry111/rust-wip-20221008, xry111/update-glibc
- Children:
- aefc822
- Parents:
- bc8cca5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/chroot.xml
rbc8cca5 r387a32af 11 11 <title>Entering the Chroot Environment</title> 12 12 13 <para>Now that all the packages which depend on themselves for being built14 are on the system, it is time to enter the chroot environment to finish15 installing the remaining temporary tools. This environment will be in use16 also for installing the final system. As user <systemitem13 <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 17 17 class="username">root</systemitem>, run the following command to enter the 18 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> 19 20 20 <screen role="nodump"><userinput>chroot "$LFS" /usr/bin/env -i \21 <screen role="nodump"><userinput>chroot "$LFS" /usr/bin/env -i \ 21 22 HOME=/root \ 22 23 TERM="$TERM" \ … … 32 33 variable inside chroot to the same value as outside chroot. This variable is 33 34 needed for programs like <command>vim</command> and <command>less</command> 34 to operate properly. If other variables are needed, such as35 to operate properly. If other variables are desired, such as 35 36 <envar>CFLAGS</envar> or <envar>CXXFLAGS</envar>, this is a good place to set 36 37 them again.</para> 37 38 38 39 <para>From this point on, there is no need to use the 39 <envar>LFS</envar> variable anymore ,because all work will be restricted40 <envar>LFS</envar> variable anymore because all work will be restricted 40 41 to the LFS file system. This is because the Bash shell is told that 41 42 <filename class="directory">$LFS</filename> is now the root … … 43 44 44 45 <para>Notice that <filename class="directory">/tools/bin</filename> is not 45 anymorein the <envar>PATH</envar>. This means that a temporary tool will no longer be46 in the <envar>PATH</envar>. This means that a temporary tool will no longer be 46 47 used once its final version is installed. This occurs when the shell does not 47 48 <quote>remember</quote> the locations of executed binaries—for this
Note:
See TracChangeset
for help on using the changeset viewer.