Changeset f4facc4 for chapter07


Ignore:
Timestamp:
09/23/2022 04:06:19 PM (22 months ago)
Author:
Xi Ruoyao <xry111@…>
Branches:
xry111/arm64, xry111/arm64-12.0
Children:
44784c1
Parents:
c6df98a1 (diff), 10d7c7a8 (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/arm64

Location:
chapter07
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • chapter07/cleanup.xml

    rc6df98a1 rf4facc4  
    1919<screen><userinput>rm -rf /usr/share/{info,man,doc}/*</userinput></screen>
    2020
    21     <para>Second, the libtool .la files are only useful when linking with static
    22     libraries. They are unneeded and potentially harmful when using dynamic
    23     shared libraries, especially when using non-autotools build systems.
    24     While still in chroot, remove those files now:</para>
     21    <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>
    2525
    2626<screen><userinput>find /usr/{lib,libexec} -name \*.la -delete</userinput></screen>
     
    9696    <para>Before making a backup, unmount the virtual file systems:</para>
    9797
    98 <screen role="nodump"><userinput>umount $LFS/dev/pts
     98<screen role="nodump"><userinput>mountpoint -q $LFS/dev/shm &amp;&amp; umount $LFS/dev/shm
     99umount $LFS/dev/pts
    99100umount $LFS/{sys,proc,run,dev}</userinput></screen>
    100101
  • chapter07/createfiles.xml

    rc6df98a1 rf4facc4  
    4949
    5050<screen><userinput>cat &gt; /etc/hosts &lt;&lt; EOF
    51 127.0.0.1  localhost $(hostname)
    52 ::1        localhost
     51<literal>127.0.0.1  localhost $(hostname)
     52::1        localhost</literal>
    5353EOF</userinput></screen>
    5454
     
    163163  distributions. In addition, some test suites rely on specific users or
    164164  groups.  The Linux Standard Base (LSB, available at <ulink
    165   url="http://refspecs.linuxfoundation.org/lsb.shtml"/>) only recommends that,
     165  url="https://refspecs.linuxfoundation.org/lsb.shtml"/>) only recommends that,
    166166  besides the group <systemitem class="groupname">root</systemitem> with a
    167167  Group ID (GID) of 0, a group <systemitem class="groupname">bin</systemitem>
  • chapter07/kernfs.xml

    rc6df98a1 rf4facc4  
    9090      directory needs to be created.</para>
    9191
     92      <para>In other cases <filename>/dev/shm</filename> is a mountpoint
     93      for a tmpfs. In that case the mount of /dev above will only create
     94      /dev/shm in the chroot environment as a directory. In this situation
     95      we explicitly mount a tmpfs,</para>
     96
    9297<screen><userinput>if [ -h $LFS/dev/shm ]; then
    9398  mkdir -pv $LFS/$(readlink $LFS/dev/shm)
     99else
     100  mount -t tmpfs -o nosuid,nodev tmpfs $LFS/dev/shm
    94101fi</userinput></screen>
    95102
Note: See TracChangeset for help on using the changeset viewer.