- Timestamp:
- 02/05/2022 12:48:27 PM (2 years ago)
- Branches:
- 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, 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:
- d79ba5b
- Parents:
- 69c4524
- git-author:
- Xi Ruoyao <xry111@…> (02/05/2022 03:36:39 AM)
- git-committer:
- Xi Ruoyao <xry111@…> (02/05/2022 12:48:27 PM)
- Location:
- chapter07
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/chroot.xml
r69c4524 r490dc153 24 24 PS1='(lfs chroot) \u:\w\$ ' \ 25 25 PATH=/usr/bin:/usr/sbin \ 26 /bin/bash --login +h</userinput></screen>26 /bin/bash --login</userinput></screen> 27 27 28 28 <para>The <parameter>-i</parameter> option given to the <command>env</command> … … 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. This occurs when the shell does not 48 <quote>remember</quote> the locations of executed binaries—for this 49 reason, hashing is switched off by passing the <parameter>+h</parameter> option 50 to <command>bash</command>.</para> 47 used in the chroot environment.</para> 51 48 52 49 <para>Note that the <command>bash</command> prompt will say -
chapter07/createfiles.xml
r69c4524 r490dc153 185 185 work:</para> 186 186 187 <screen role="nodump"><userinput>exec /usr/bin/bash --login +h</userinput></screen> 188 189 <para>Note the use of the <parameter>+h</parameter> directive. This tells 190 <command>bash</command> not to use its internal path hashing. Without this 191 directive, <command>bash</command> would remember the paths to binaries it has 192 executed. To ensure the use of the newly compiled binaries as soon as they are 193 installed, the <parameter>+h</parameter> directive will be used for the duration 194 of this and the next chapter.</para> 187 <screen role="nodump"><userinput>exec /usr/bin/bash --login</userinput></screen> 195 188 196 189 <para>The <command>login</command>, <command>agetty</command>, and
Note:
See TracChangeset
for help on using the changeset viewer.