diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2020-06-11 18:27:01 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2020-06-11 18:27:01 +0000 |
commit | ea7ec72fba2b9749da2c22db67152eccaef5dfb0 (patch) | |
tree | a7eb826e1859397b84943f5f3a53ee05b83f35d3 /chapter07 | |
parent | 3b1b9de38753a31897f098b34b255c2ebc5dde18 (diff) |
Typos.
Tweaks to stripping.xml
git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11923 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter07')
-rw-r--r-- | chapter07/libstdc++-pass2.xml | 2 | ||||
-rw-r--r-- | chapter07/stripping.xml | 51 | ||||
-rw-r--r-- | chapter07/util-linux.xml | 2 |
3 files changed, 33 insertions, 22 deletions
diff --git a/chapter07/libstdc++-pass2.xml b/chapter07/libstdc++-pass2.xml index a98bfb282..903400bda 100644 --- a/chapter07/libstdc++-pass2.xml +++ b/chapter07/libstdc++-pass2.xml @@ -28,7 +28,7 @@ the installation of the C++ standard library because no suitable compiler was available to compile it. We could not use the compiler built in that section because it is a native compiler and should not be used outside of - chroot and risk polluting the libraries with some host components.</para> + chroot and risks polluting the libraries with some host components.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> diff --git a/chapter07/stripping.xml b/chapter07/stripping.xml index 2f62fd5f2..1b846f195 100644 --- a/chapter07/stripping.xml +++ b/chapter07/stripping.xml @@ -19,12 +19,12 @@ <para> The following steps are performed from outside the chroot environment. That means, you have to leave the chroot environment - first before continuing. The reason for that is to + first before continuing. The reason for that is to: <itemizedlist> <listitem> <para> - make sure that objects are not in use while they gets - manipulated. + make sure that objects are not in use while they are + manipulated. </para> </listitem> <listitem> @@ -44,10 +44,6 @@ systems: </para> -<screen role="nodump"><userinput>exit -umount $LFS/dev{/pts,} -umount $LFS/{sys,proc,run}</userinput></screen> - <note> <para>All of the following instructions are executed by <systemitem class="username">root</systemitem>. Take extra @@ -63,12 +59,16 @@ umount $LFS/{sys,proc,run}</userinput></screen> </para> </note> +<screen role="nodump"><userinput>exit +umount $LFS/dev{/pts,} +umount $LFS/{sys,proc,run}</userinput></screen> + <sect2> <title>Stripping</title> - <para>If the LFS partition is rather small, it is beneficial to - learn that unnecessary items can be removed. The executables and - libraries built so far contain about 94 MB of unneeded debugging + <para>If the LFS partition is rather small, it is good to + know that unnecessary items can be removed. The executables and + libraries built so far contain a little over 90 MB of unneeded debugging symbols.</para> <para>Strip off debugging symbols from binaries:</para> @@ -87,7 +87,7 @@ strip --strip-unneeded $LFS/tools/bin/*</userinput></screen> ones would be destroyed and the toolchain packages would need to be built all over again.</para> - <para>To save more space (about 37 MB), remove the documentation:</para> + <para>To save more space (slightly more than 35 MB), remove the documentation:</para> <screen role="nodump"><userinput>rm -rf $LFS/usr/share/{info,man,doc}</userinput></screen> @@ -99,10 +99,10 @@ strip --strip-unneeded $LFS/tools/bin/*</userinput></screen> <screen role="nodump"><userinput>find $LFS/usr/{lib,libexec} -name \*.la -delete</userinput></screen> <para>At this point, you should have at least 5 GB of free space on the - chroot partition that can be used to build and install Glibc and Gcc in + chroot partition that can be used to build and install Glibc and GCC in the next phase. If you can build and install Glibc, you can build and install the rest too. You can check the free disk space with the command - <command>df -h $LFS/</command>.</para> + <command>df -h $LFS</command>.</para> </sect2> @@ -129,13 +129,19 @@ strip --strip-unneeded $LFS/tools/bin/*</userinput></screen> <para> Create the backup archive by running the following command: </para> -<screen role="nodump"><userinput>cd $LFS && -tar -cJpf $HOME/temp-tools.tar.xz . + +<screen role="nodump" revision="sysv"><userinput>cd $LFS && +tar -cJpf $HOME/lfs-temp-tools-&version;.tar.xz . +</userinput></screen> + +<screen role="nodump" revision="systemd"><userinput>cd $LFS && +tar -cJpf $HOME/lfs-temp-tools-&versiond;.tar.xz . </userinput></screen> + <para> Replace <envar>$HOME</envar> by a directory of your choice if you - do not want to have the backup stored in <systemitem class="username">root</systemitem>'s - home directory. + do not want to have the backup stored in <systemitem + class="username">root</systemitem>'s home directory. </para> <para> @@ -143,14 +149,19 @@ tar -cJpf $HOME/temp-tools.tar.xz . use this backup to restore the temporary tools and save some recovery time. Since the sources are located under <filename class="directory">$LFS</filename>, they are included in the - backup archive as well, so you need not to download them again. After + backup archive as well, so they do not need to be downloaded again. After checking that <filename class="directory">$LFS</filename> is set properly, restore the backup by executing the following commands: </para> -<screen role="nodump"><userinput>cd $LFS && +<screen role="nodump" revision="sysv"><userinput>cd $LFS && +rm -rf ./* && +tar -xpf $HOME/lfs-temp-tools-&version;.tar.xz +</userinput></screen> + +<screen role="nodump" revision="systemd"><userinput>cd $LFS && rm -rf ./* && -tar -xpf $HOME/temp-tools.tar.xz +tar -xpf $HOME/lfs-temp-tools-&versiond;.tar.xz </userinput></screen> <para> diff --git a/chapter07/util-linux.xml b/chapter07/util-linux.xml index 05698ae66..33dc8862d 100644 --- a/chapter07/util-linux.xml +++ b/chapter07/util-linux.xml @@ -69,7 +69,7 @@ <listitem> <para>This sets the location of the file recording information about the hardware clock in accordance to the FHS. This is not stricly - needed for his temporary tool, but it prevents creating a file + needed for this temporary tool, but it prevents creating a file at another location, which would not be overwritten or removed when building the final util-linux package.</para> </listitem> |