Ignore:
Timestamp:
06/11/2020 06:27:01 PM (4 years ago)
Author:
Bruce Dubbs <bdubbs@…>
Branches:
10.0, 10.0-rc1, 10.1, 10.1-rc1, 11.0, 11.0-rc1, 11.0-rc2, 11.0-rc3, 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, ml-11.0, 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:
6a156bab
Parents:
3b1b9de
Message:

Typos.
Tweaks to stripping.xml

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/cross2@11923 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

File:
1 edited

Legend:

Unmodified
Added
Removed
  • chapter07/stripping.xml

    r3b1b9de rea7ec72  
    2020    The following steps are performed from outside the chroot
    2121    environment. That means, you have to leave the chroot environment
    22     first before continuing. The reason for that is to
     22    first before continuing. The reason for that is to:
    2323    <itemizedlist>
    2424      <listitem>
    2525        <para>
    26           make sure that objects are not in use while they gets
    27           manipulated.
     26          make sure that objects are not in use while they are
     27          manipulated.
    2828        </para>
    2929      </listitem>
     
    4545  </para>
    4646
    47 <screen role="nodump"><userinput>exit
    48 umount $LFS/dev{/pts,}
    49 umount $LFS/{sys,proc,run}</userinput></screen>
    50 
    5147  <note>
    5248    <para>All of the following instructions are executed by
     
    6460  </note>
    6561
     62<screen role="nodump"><userinput>exit
     63umount $LFS/dev{/pts,}
     64umount $LFS/{sys,proc,run}</userinput></screen>
     65
    6666  <sect2>
    6767    <title>Stripping</title>
    6868
    69     <para>If the LFS partition is rather small, it is beneficial to
    70     learn that unnecessary items can be removed. The executables and
    71     libraries built so far contain about 94 MB of unneeded debugging
     69    <para>If the LFS partition is rather small, it is good to
     70    know that unnecessary items can be removed. The executables and
     71    libraries built so far contain a little over 90 MB of unneeded debugging
    7272    symbols.</para>
    7373
     
    8888    built all over again.</para>
    8989
    90     <para>To save more space (about 37 MB), remove the documentation:</para>
     90    <para>To save more space (slightly more than 35 MB), remove the documentation:</para>
    9191
    9292<screen role="nodump"><userinput>rm -rf $LFS/usr/share/{info,man,doc}</userinput></screen>
     
    100100
    101101    <para>At this point, you should have at least 5 GB of free space on the
    102     chroot partition that can be used to build and install Glibc and Gcc in
     102    chroot partition that can be used to build and install Glibc and GCC in
    103103    the next phase. If you can build and install Glibc, you can build and install
    104104    the rest too. You can check the free disk space with the command
    105     <command>df -h $LFS/</command>.</para>
     105    <command>df -h $LFS</command>.</para>
    106106
    107107  </sect2>
     
    130130      Create the backup archive by running the following command:
    131131    </para>
    132 <screen role="nodump"><userinput>cd $LFS &amp;&amp;
    133 tar -cJpf $HOME/temp-tools.tar.xz .
     132
     133<screen role="nodump" revision="sysv"><userinput>cd $LFS &amp;&amp;
     134tar -cJpf $HOME/lfs-temp-tools-&version;.tar.xz .
    134135</userinput></screen>
     136
     137<screen role="nodump" revision="systemd"><userinput>cd $LFS &amp;&amp;
     138tar -cJpf $HOME/lfs-temp-tools-&versiond;.tar.xz .
     139</userinput></screen>
     140
    135141    <para>
    136142      Replace <envar>$HOME</envar> by a directory of your choice if you
    137       do not want to have the backup stored in <systemitem class="username">root</systemitem>'s
    138       home directory.
     143      do not want to have the backup stored in <systemitem
     144      class="username">root</systemitem>'s home directory.
    139145    </para>
    140146
     
    144150      Since the sources are located under
    145151      <filename class="directory">$LFS</filename>, they are included in the
    146       backup archive as well, so you need not to download them again. After
     152      backup archive as well, so they do not need to be downloaded again. After
    147153      checking that <filename class="directory">$LFS</filename> is set properly,
    148154      restore the backup by executing the following commands:
    149155    </para>
    150156
    151 <screen role="nodump"><userinput>cd $LFS &amp;&amp;
     157<screen role="nodump" revision="sysv"><userinput>cd $LFS &amp;&amp;
    152158rm -rf ./* &amp;&amp;
    153 tar -xpf $HOME/temp-tools.tar.xz
     159tar -xpf $HOME/lfs-temp-tools-&version;.tar.xz
     160</userinput></screen>
     161
     162<screen role="nodump" revision="systemd"><userinput>cd $LFS &amp;&amp;
     163rm -rf ./* &amp;&amp;
     164tar -xpf $HOME/lfs-temp-tools-&versiond;.tar.xz
    154165</userinput></screen>
    155166
Note: See TracChangeset for help on using the changeset viewer.