Changeset 02974d8 for chapter06/chapter06.xml
- Timestamp:
- 03/14/2004 09:53:12 PM (20 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, 6.0, 6.1, 6.1.1, 6.3, 6.4, 6.5, 6.6, 6.7, 6.8, 7.0, 7.1, 7.2, 7.3, 7.4, 7.5, 7.5-systemd, 7.6, 7.6-systemd, 7.7, 7.7-systemd, 7.8, 7.8-systemd, 7.9, 7.9-systemd, 8.0, 8.1, 8.2, 8.3, 8.4, 9.0, 9.1, arm, bdubbs/gcc13, ml-11.0, multilib, renodr/libudev-from-systemd, s6-init, trunk, v5_1, v5_1_1, 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:
- caa08b6
- Parents:
- 5b7293a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter06/chapter06.xml
r5b7293a r02974d8 130 130 131 131 <screen><userinput>chroot $LFS /tools/bin/env -i \ 132 TERM=$TERM PS1='\u:\w\$ ' \132 HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ 133 133 PATH=/bin:/usr/bin:/sbin:/usr/sbin:/tools/bin \ 134 134 /tools/bin/bash +h</userinput></screen> 135 135 136 <para>The <emphasis>-i</emphasis> option given to the 137 <command>env</command> command will clear all variables of the chroot 138 environment. After that, only the TERM, PS1 and PATH variables are 139 set again. The TERM=$TERM construct will set the TERM variable inside chroot 140 to the same value as outside chroot; this variable is needed for programs 141 like <command>less</command> and <command>vim</command> to operate 142 properly. If you need other variables present, such as CFLAGS, CXXFLAGS or 143 HOME, this is a good place to set them.</para> 136 <para>The <emphasis>-i</emphasis> option passed to the <command>env</command> 137 command will clear all variables of the chroot environment. After that, only 138 the HOME, TERM, PS1 and PATH variables are set again. The HOME variable is set 139 mainly to prevent several small warnings during the configure runs of 140 Diffutils, Grep and Grub. The TERM variable is set to make programs such as 141 <command>less</command> and <command>vim</command>, that make use of the 142 Ncurses package, operate properly -- the TERM=$TERM construct sets the TERM 143 variable inside chroot to the same value as outside chroot. The main prompt 144 (PS1) is set to "username:working-dir# " (since the "\$" becomes "#" for root). 145 If you need other variables present, such as CFLAGS, CXXFLAGS or LDFLAGS, this 146 is a good place to set them.</para> 144 147 145 148 <para>From this point on there's no need to use the LFS variable anymore, … … 403 406 problem here. The above command takes care of this also.</para> 404 407 405 <para>You can now remove the Binutils source and build directories.</para> 408 <para>You must now remove the Binutils source and build directories. (This is 409 important, as you should start the next section with a fresh untarring of the 410 package.)</para> 406 411 407 412 <para>The next thing to do is to amend our GCC specs file so that it points … … 581 586 582 587 <screen><userinput>chroot $LFS /tools/bin/env -i \ 583 TERM=$TERM PS1='\u:\w\$ ' \588 HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ 584 589 PATH=/bin:/usr/bin:/sbin:/usr/sbin \ 585 590 /tools/bin/bash</userinput></screen> … … 611 616 612 617 <screen><userinput>chroot $LFS /usr/bin/env -i \ 613 TERM=$TERM PS1='\u:\w\$ ' \618 HOME=/root TERM=$TERM PS1='\u:\w\$ ' \ 614 619 PATH=/bin:/usr/bin:/sbin:/usr/sbin \ 615 620 /bin/bash</userinput></screen>
Note:
See TracChangeset
for help on using the changeset viewer.