Changeset 6dfcfecc for chapter08/revisedchroot.xml
- Timestamp:
- 03/31/2021 10:41:39 AM (3 years ago)
- Branches:
- ml-11.0, multilib
- Children:
- 7610848
- Parents:
- 811b5a39
- git-author:
- Thomas Trepl <thomas@…> (06/29/2020 07:55:01 AM)
- git-committer:
- Xℹ Ruoyao <xry111@…> (03/31/2021 10:41:39 AM)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
chapter08/revisedchroot.xml
r811b5a39 r6dfcfecc 27 27 /bin/bash --login</userinput></screen> 28 28 29 <para>The reason for this is that the programs in <filename 30 class="directory">/tools</filename> are no longer needed. For this reason 31 you can delete the <filename class="directory">/tools</filename> 32 directory if so desired.</para> 33 34 <note> 35 <para>Removing <filename class="directory">/tools</filename> will also 36 remove the temporary copies of Tcl, Expect, and DejaGNU which were used 37 for running the toolchain tests. If you need these programs later on, 38 they will need to be recompiled and re-installed. The BLFS book has 39 instructions for this (see <ulink url="&blfs-root;"/>).</para> 40 </note> 29 <para>Here the <parameter>+h</parameter> option is not used anymore, since 30 all the previous programs have been replaced: hashing is therefore 31 possible.</para> 41 32 42 33 <para>If the virtual kernel file systems have been unmounted, either manually 43 34 or through a reboot, ensure that the virtual kernel file systems are mounted 44 35 when reentering the chroot. This process was explained in <xref 45 linkend="ch- system-bindmount"/> and <xref46 linkend="ch- system-kernfsmount"/>.</para>36 linkend="ch-tools-bindmount"/> and <xref 37 linkend="ch-tools-kernfsmount"/>.</para> 47 38 48 39 <para>There were several static libraries that were not suppressed earlier … … 57 48 rm -f /usr/lib/libltdl.a 58 49 rm -f /usr/lib/libfl.a 59 rm -f /usr/lib/libz.a</userinput></screen> 50 rm -f /usr/lib/libz.a</userinput><userinput arch="ml_32,ml_all"> 51 rm -f &usr-lib-m32;/libbz2.a 52 rm -f &usr-lib-m32;/libltdl.a 53 rm -f &usr-lib-m32;/libz.a</userinput><userinput arch="ml_x32,ml_all"> 54 rm -f &usr-lib-mx32;/libbz2.a 55 rm -f &usr-lib-mx32;/libltdl.a 56 rm -f &usr-lib-mx32;/libz.a</userinput></screen> 60 57 61 58 <para>There are also several files installed in the /usr/lib and /usr/libexec … … 66 63 To remove them, run:</para> 67 64 68 <screen arch="default"><userinput>find /usr/lib /usr/libexec -name \*.la -delete</userinput></screen> 69 <screen arch="ml_32"><userinput>find /usr/lib{,32} /usr/libexec -name \*.la -delete</userinput></screen> 70 <screen arch="ml_x32"><userinput>find /usr/lib{,x32} /usr/libexec -name \*.la -delete</userinput></screen> 71 <screen arch="ml_all"><userinput>find /usr/lib{,{,x}32} /usr/libexec -name \*.la -delete</userinput></screen> 65 <screen><userinput>find /usr/lib /usr/libexec -name \*.la -delete</userinput><userinput arch="ml_32,ml_all"> 66 find &usr-lib-m32; -name \*.la -delete</userinput><userinput arch="ml_x32,ml_all"> 67 find &usr-lib-mx32; -name \*.la -delete</userinput></screen> 72 68 73 69 <para>For more information about libtool archive files, see the <ulink … … 75 71 Archive (.la) files"</ulink>.</para> 76 72 77 <para>Finally, remove the temporary 'tester' us r account created at the78 beginning of th is chapter.</para>73 <para>Finally, remove the temporary 'tester' user account created at the 74 beginning of the previous chapter.</para> 79 75 80 <screen><userinput>sed -i '/tester/d' /etc/passwd /etc/group 81 rm -rf /home/tester</userinput></screen> 76 <screen><userinput>userdel -r tester</userinput></screen> 82 77 </sect1>
Note:
See TracChangeset
for help on using the changeset viewer.