Changeset ebecd08 for chapter07/chroot.xml
- Timestamp:
- 11/16/2022 07:16:35 PM (18 months ago)
- Branches:
- 11.3, 11.3-rc1, 12.0, 12.0-rc1, 12.1, 12.1-rc1, bdubbs/gcc13, multilib, renodr/libudev-from-systemd, trunk, xry111/arm64, xry111/arm64-12.0, xry111/clfs-ng, xry111/loongarch, xry111/loongarch-12.0, xry111/loongarch-12.1, xry111/mips64el, xry111/update-glibc
- Children:
- 091d624d, 16a1647
- Parents:
- f2dff2d
- git-author:
- David Bryant <davidbryant@…> (11/16/2022 07:15:01 PM)
- git-committer:
- David Bryant <davidbryant@…> (11/16/2022 07:16:35 PM)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/chroot.xml
rf2dff2d rebecd08 12 12 13 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 to15 finish installing the remaining temporary tools. This environment will be in16 use also for installingthe final system. As user <systemitem14 needed tools are on the system, it is time to enter the chroot environment and 15 finish installing the temporary tools. This environment will also be 16 used to install the final system. As user <systemitem 17 17 class="username">root</systemitem>, run the following command to enter the 18 environment that is, at the moment, populated with only thetemporary18 environment that is, at the moment, populated with nothing but temporary 19 19 tools:</para> 20 20 … … 27 27 28 28 <para>The <parameter>-i</parameter> option given to the <command>env</command> 29 command will clear all variables ofthe chroot environment. After that, only29 command will clear all the variables in the chroot environment. After that, only 30 30 the <envar>HOME</envar>, <envar>TERM</envar>, <envar>PS1</envar>, and 31 31 <envar>PATH</envar> variables are set again. The 32 <parameter>TERM=$TERM</parameter> construct will setthe <envar>TERM</envar>32 <parameter>TERM=$TERM</parameter> construct sets the <envar>TERM</envar> 33 33 variable inside chroot to the same value as outside chroot. This variable is 34 needed forprograms like <command>vim</command> and <command>less</command>35 tooperate properly. If other variables are desired, such as34 needed so programs like <command>vim</command> and <command>less</command> 35 can operate properly. If other variables are desired, such as 36 36 <envar>CFLAGS</envar> or <envar>CXXFLAGS</envar>, this is a good place to set 37 them again.</para>37 them.</para> 38 38 39 39 <para>From this point on, there is no need to use the 40 <envar>LFS</envar> variable any more because all work will be restricted41 to the LFS file system . This is because the Bash shell is toldthat40 <envar>LFS</envar> variable any more because all work will be restricted 41 to the LFS file system; the <command>chroot</command> command tells the Bash shell that 42 42 <filename class="directory">$LFS</filename> is now the root 43 43 (<filename class="directory">/</filename>) directory.</para> … … 45 45 <para>Notice that <filename class="directory">/tools/bin</filename> is not 46 46 in the <envar>PATH</envar>. This means that the cross toolchain will no longer be 47 used in the chroot environment.</para>47 used.</para> 48 48 49 49 <para>Note that the <command>bash</command> prompt will say
Note:
See TracChangeset
for help on using the changeset viewer.