From 8a269ec27eaaffdba200b3b21f7f8821a03456bd Mon Sep 17 00:00:00 2001 From: Bruce Dubbs Date: Thu, 12 Aug 2021 16:03:35 -0500 Subject: [PATCH] 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. --- chapter07/cleanup.xml | 4 ++-- chapter08/chapter08.xml | 2 +- chapter08/revisedchroot.xml | 5 ----- chapter08/{strippingagain.xml => stripping.xml} | 16 +++++++--------- 4 files changed, 10 insertions(+), 17 deletions(-) rename chapter08/{strippingagain.xml => stripping.xml} (92%) diff --git a/chapter07/cleanup.xml b/chapter07/cleanup.xml index 69f3d2da1..04005eece 100644 --- a/chapter07/cleanup.xml +++ b/chapter07/cleanup.xml @@ -5,8 +5,8 @@ %general-entities; ]> - - + + Cleaning up and Saving the Temporary System diff --git a/chapter08/chapter08.xml b/chapter08/chapter08.xml index beee9e480..e9cb2b2ce 100644 --- a/chapter08/chapter08.xml +++ b/chapter08/chapter08.xml @@ -104,7 +104,7 @@ - + diff --git a/chapter08/revisedchroot.xml b/chapter08/revisedchroot.xml index 3627cd603..0c16ae622 100644 --- a/chapter08/revisedchroot.xml +++ b/chapter08/revisedchroot.xml @@ -55,11 +55,6 @@ chroot "$LFS" /usr/bin/env -i \ find /usr -depth -name $(uname -m)-lfs-linux-gnu\* | xargs rm -rf - The /tools directory can also - be removed to further gain some space: - -rm -rf /tools - Finally, remove the temporary 'tester' user account created at the beginning of the previous chapter. diff --git a/chapter08/strippingagain.xml b/chapter08/stripping.xml similarity index 92% rename from chapter08/strippingagain.xml rename to chapter08/stripping.xml index a2b6f0263..853ea8848 100644 --- a/chapter08/strippingagain.xml +++ b/chapter08/stripping.xml @@ -5,10 +5,10 @@ %general-entities; ]> - - + + - Stripping Again + Stripping This section is optional. If the intended user is not a programmer and does not plan to do @@ -31,9 +31,9 @@ Note that strip 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 strip 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 and binaries into /tmp, strip them there, and install them back with the install command. @@ -44,7 +44,6 @@ and ld-linux.so.2 on 32-bit systems. The contruct below selects the correct name for the current architecture. - @@ -105,8 +104,7 @@ unset BIN LIB save_usrlib online_usrbin online_usrlib A large number of files will be reported as having their file - format not recognized. These warnings can be safely ignored. These - warnings indicate that those files are scripts instead of - binaries. + format not recognized. These warnings can be safely ignored. They + indicate that those files are scripts instead of binaries.