Changeset efcb393 for chapter05/chroot.xml
- Timestamp:
- 05/03/2020 09:02:51 PM (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:
- a715dec
- Parents:
- 9d719e2
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
chapter05/chroot.xml
r9d719e2 refcb393 6 6 ]> 7 7 8 <sect1 id="ch- system-chroot">8 <sect1 id="ch-tools-chroot"> 9 9 <?dbhtml filename="chroot.html"?> 10 10 11 11 <title>Entering the Chroot Environment</title> 12 12 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 depend on themselves for being built 14 are on the system, it is time to enter the chroot environment to finish 15 installing the remaining temporary tools. This environment will be in use 16 also for installing the final system. As user <systemitem 15 17 class="username">root</systemitem>, run the following command to enter the 16 18 realm that is, at the moment, populated with only the temporary tools:</para> 17 19 18 <screen role="nodump"><userinput>chroot "$LFS" / tools/bin/env -i \20 <screen role="nodump"><userinput>chroot "$LFS" /usr/bin/env -i \ 19 21 HOME=/root \ 20 22 TERM="$TERM" \ 21 23 PS1='(lfs chroot) \u:\w\$ ' \ 22 PATH=/bin:/usr/bin:/sbin:/usr/sbin :/tools/bin\23 / tools/bin/bash --login +h</userinput></screen>24 PATH=/bin:/usr/bin:/sbin:/usr/sbin \ 25 /bin/bash --login +h</userinput></screen> 24 26 25 27 <para>The <parameter>-i</parameter> option given to the <command>env</command> … … 40 42 (<filename class="directory">/</filename>) directory.</para> 41 43 42 <para>Notice that <filename class="directory">/tools/bin</filename> comes last43 in the <envar>PATH</envar>. This means that a temporary tool will no longer be44 <para>Notice that <filename class="directory">/tools/bin</filename> is not 45 anymore in the <envar>PATH</envar>. This means that a temporary tool will no longer be 44 46 used once its final version is installed. This occurs when the shell does not 45 47 <quote>remember</quote> the locations of executed binaries—for this
Note:
See TracChangeset
for help on using the changeset viewer.