Touch up cleanup commands in Chapter 8

We moved the rm /tools from Chapter 8 to Chapter 7.
Some minor wording changes and file renaming.
This commit is contained in:
Bruce Dubbs 2021-08-12 16:03:35 -05:00
parent 02b26317cb
commit 8a269ec27e
4 changed files with 10 additions and 17 deletions

View File

@ -5,8 +5,8 @@
%general-entities; %general-entities;
]> ]>
<sect1 id="ch-tools-stripping"> <sect1 id="ch-tools-cleanup">
<?dbhtml filename="stripping.html"?> <?dbhtml filename="cleanup.html"?>
<title>Cleaning up and Saving the Temporary System</title> <title>Cleaning up and Saving the Temporary System</title>

View File

@ -104,7 +104,7 @@
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sysvinit.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="sysvinit.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="aboutdebug.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="aboutdebug.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="strippingagain.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="stripping.xml"/>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="revisedchroot.xml"/> <xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="revisedchroot.xml"/>
</chapter> </chapter>

View File

@ -55,11 +55,6 @@ chroot "$LFS" /usr/bin/env -i \
<screen><userinput>find /usr -depth -name $(uname -m)-lfs-linux-gnu\* | xargs rm -rf</userinput></screen> <screen><userinput>find /usr -depth -name $(uname -m)-lfs-linux-gnu\* | xargs rm -rf</userinput></screen>
<para>The <filename class="directory">/tools</filename> directory can also
be removed to further gain some space:</para>
<screen><userinput>rm -rf /tools</userinput></screen>
<para>Finally, remove the temporary 'tester' user account created at the <para>Finally, remove the temporary 'tester' user account created at the
beginning of the previous chapter.</para> beginning of the previous chapter.</para>

View File

@ -5,10 +5,10 @@
%general-entities; %general-entities;
]> ]>
<sect1 id="ch-system-strippingagain"> <sect1 id="ch-system-stripping">
<?dbhtml filename="strippingagain.html"?> <?dbhtml filename="stripping.html"?>
<title>Stripping Again</title> <title>Stripping</title>
<para>This section is optional. If the intended user is not a <para>This section is optional. If the intended user is not a
programmer and does not plan to do programmer and does not plan to do
@ -31,9 +31,9 @@
</para> </para>
<para>Note that <command>strip</command> will overwrite the binary or library <para>Note that <command>strip</command> will overwrite the binary or library
file it is processing. This may crash the processes using code or data from file it is processing. This can crash the processes using code or data from
the file. If the process running <command>strip</command> itself is the file. If the process running <command>strip</command> itself is
affected, the binary or library being stripped may be destroyed. This may affected, the binary or library being stripped can be destroyed and can
make the system completely unusable. To avoid it, we'll copy some libraries make the system completely unusable. To avoid it, we'll copy some libraries
and binaries into <filename class="directory">/tmp</filename>, strip them and binaries into <filename class="directory">/tmp</filename>, strip them
there, and install them back with the <command>install</command> command. there, and install them back with the <command>install</command> command.
@ -44,7 +44,6 @@
and ld-linux.so.2 on 32-bit systems. The contruct below selects the and ld-linux.so.2 on 32-bit systems. The contruct below selects the
correct name for the current architecture.</para></note> correct name for the current architecture.</para></note>
<!-- also of interest are libgfortan, libgo, libgomp, and libobjc from GCC --> <!-- also of interest are libgfortan, libgo, libgomp, and libobjc from GCC -->
<!--<screen><userinput>save_lib="ld-2.25.so libc-2.25.so libpthread-2.25.so libthread_db-1.0.so"--> <!--<screen><userinput>save_lib="ld-2.25.so libc-2.25.so libpthread-2.25.so libthread_db-1.0.so"-->
@ -105,8 +104,7 @@ unset BIN LIB save_usrlib online_usrbin online_usrlib
</userinput></screen> </userinput></screen>
<para>A large number of files will be reported as having their file <para>A large number of files will be reported as having their file
format not recognized. These warnings can be safely ignored. These format not recognized. These warnings can be safely ignored. They
warnings indicate that those files are scripts instead of indicate that those files are scripts instead of binaries.</para>
binaries.</para>
</sect1> </sect1>