Changeset b59b371 for chapter07


Ignore:
Timestamp:
11/19/2022 08:27:13 AM (20 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/clfs-ng
Children:
2ef64c4
Parents:
4d3f41c (diff), 651f491 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge remote-tracking branch 'origin/trunk' into xry111/clfs-ng

Location:
chapter07
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • chapter07/chroot.xml

    r4d3f41c rb59b371  
    5353
    5454  <para>The <parameter>-i</parameter> option given to the <command>env</command>
    55   command will clear all variables of the environment. After that, only
     55  command will clear all the variables in the environment. After that, only
    5656  the <envar>HOME</envar>, <envar>TERM</envar>, <envar>PS1</envar>, and
    5757  <envar>PATH</envar> variables are set again. The
    5858  <parameter>TERM=$TERM</parameter> construct will set the <envar>TERM</envar>
    5959  variable to the default value specified by <command>agetty</command>. This variable is
    60   needed for programs like <command>vim</command> and <command>less</command>
    61   to operate properly.  If other variables are desired, such as
     60  needed so programs like <command>vim</command> and <command>less</command>
     61  can operate properly.  If other variables are desired, such as
    6262  <envar>CFLAGS</envar> or <envar>CXXFLAGS</envar>, this is a good place to set
    63   them again.</para>
     63  them.</para>
    6464
    6565  <para>Notice that <filename class="directory">/tools/bin</filename> is not
    6666  in the <envar>PATH</envar>. This means that the cross toolchain will no longer be
    67   used on the target machine.</para>
     67  used.</para>
    6868
    6969  <para>Note that the <command>bash</command> prompt will say
  • chapter07/cleanup.xml

    r4d3f41c rb59b371  
    1414    <title>Cleaning</title>
    1515
    16     <para>First, remove the currently installed documentation to prevent them
     16    <para>First, remove the currently installed documentation files to prevent them
    1717    from ending up in the final system, and to save about 35 MB:</para>
    1818
     
    2020
    2121    <para>Second, on a modern Linux system, the libtool .la files are only
    22     useful for libltdl.  No libraries in LFS are expected to be loaded by
    23     libltdl, and it's known that some .la files can cause BLFS packages
    24     fail to build.  Remove those files now:</para>
     22    useful for libltdl.  No libraries in LFS are loaded by
     23    libltdl, and it's known that some .la files can cause BLFS package
     24    failures.  Remove those files now:</para>
    2525
    2626<screen><userinput>find /usr/{lib,libexec} -name \*.la -delete</userinput></screen>
     
    4343      backed up for later reuse. In case of fatal failures in the subsequent
    4444      chapters, it often turns out that removing everything and starting over
    45       (more carefully) is the best option to recover. Unfortunately, all the
     45      (more carefully) is the best way to recover. Unfortunately, all the
    4646      temporary files will be removed, too. To avoid spending extra time to
    47       redo something which has been built successfully, creating a backup of
     47      redo something which has been done successfully, creating a backup of
    4848      the current LFS system may prove useful.
    4949    </para>
     
    7272      Note that the instructions below specify the home directory of the host
    7373      system's <systemitem class="username">root</systemitem> user, which is
    74       typically found on the root filesystem.
    75     </para>
    76 
    77     <para>
     74      typically found on the root file system.
    7875      Replace <envar>$HOME</envar> by a directory of your choice if you
    7976      do not want to have the backup stored in <systemitem
  • chapter07/createfiles.xml

    r4d3f41c rb59b371  
    3535  </indexterm>
    3636
    37   <para>Historically, Linux maintains a list of the mounted file systems in the
     37  <para>Historically, Linux maintained a list of the mounted file systems in the
    3838  file <filename>/etc/mtab</filename>. Modern kernels maintain this list
    3939  internally and expose it to the user via the <filename
    4040  class="directory">/proc</filename> filesystem. To satisfy utilities that
    41   expect the presence of <filename>/etc/mtab</filename>, create the following
     41  expect to find <filename>/etc/mtab</filename>, create the following
    4242  symbolic link:</para>
    4343
     
    160160  <para>The created groups are not part of any standard&mdash;they are groups
    161161  decided on in part by the requirements of the Udev configuration in Chapter
    162   9, and in part by common convention employed by a number of existing Linux
     162  9, and in part by common conventions employed by a number of existing Linux
    163163  distributions. In addition, some test suites rely on specific users or
    164164  groups.  The Linux Standard Base (LSB, available at <ulink
     
    166166  besides the group <systemitem class="groupname">root</systemitem> with a
    167167  Group ID (GID) of 0, a group <systemitem class="groupname">bin</systemitem>
    168   with a GID of 1 be present. The GID of 5 is widely used for
     168  with a GID of 1 be present. The GID of 5 is widely used for the
    169169  <systemitem class="groupname">tty</systemitem> group, and the number 5 is
    170170  also used in <phrase revision="systemd">systemd</phrase>
     
    180180  machine or in the separate namespace).  We assign
    181181  <systemitem class="username">nobody</systemitem> and
    182   <systemitem class="groupname">nogroup</systemitem> for it to avoid an
     182  <systemitem class="groupname">nogroup</systemitem> to avoid an
    183183  unnamed ID.  But other distros may treat this ID differently, so any
    184184  portable program should not depend on this assignment.</para>
  • chapter07/kernfs.xml

    r4d3f41c rb59b371  
    1616
    1717    <para>Applications running in user space utilize various file
    18     systems exported by the kernel to communicate
     18    systems created by the kernel to communicate
    1919    with the kernel itself. These file systems are virtual: no disk
    20     space is used for them. The content of the file systems resides in
     20    space is used for them. The content of these file systems resides in
    2121    memory.</para>
    2222
    23     <para>Begin by creating directories on which the file systems will be
     23    <para>Begin by creating the directories on which these virtual file systems will be
    2424    mounted:</para>
    2525
     
    3131    <para>The kernel has already mounted
    3232    <systemitem class="filesystem">devtmpfs</systemitem>.
    33     Mount the remaining virtual kernel filesystems:</para>
     33    Mount the remaining virtual kernel file systems:</para>
    3434
    3535<screen><userinput>mkdir -pv /dev/{pts,shm}
Note: See TracChangeset for help on using the changeset viewer.