- Timestamp:
- 09/23/2022 04:06:19 PM (22 months ago)
- 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. - Location:
- chapter07
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/cleanup.xml
rc6df98a1 rf4facc4 19 19 <screen><userinput>rm -rf /usr/share/{info,man,doc}/*</userinput></screen> 20 20 21 <para>Second, the libtool .la files are only useful when linking with static22 libraries. They are unneeded and potentially harmful when using dynamic23 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> 25 25 26 26 <screen><userinput>find /usr/{lib,libexec} -name \*.la -delete</userinput></screen> … … 96 96 <para>Before making a backup, unmount the virtual file systems:</para> 97 97 98 <screen role="nodump"><userinput>umount $LFS/dev/pts 98 <screen role="nodump"><userinput>mountpoint -q $LFS/dev/shm && umount $LFS/dev/shm 99 umount $LFS/dev/pts 99 100 umount $LFS/{sys,proc,run,dev}</userinput></screen> 100 101 -
chapter07/createfiles.xml
rc6df98a1 rf4facc4 49 49 50 50 <screen><userinput>cat > /etc/hosts << EOF 51 127.0.0.1 localhost $(hostname)52 ::1 localhost 51 <literal>127.0.0.1 localhost $(hostname) 52 ::1 localhost</literal> 53 53 EOF</userinput></screen> 54 54 … … 163 163 distributions. In addition, some test suites rely on specific users or 164 164 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, 166 166 besides the group <systemitem class="groupname">root</systemitem> with a 167 167 Group ID (GID) of 0, a group <systemitem class="groupname">bin</systemitem> -
chapter07/kernfs.xml
rc6df98a1 rf4facc4 90 90 directory needs to be created.</para> 91 91 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 92 97 <screen><userinput>if [ -h $LFS/dev/shm ]; then 93 98 mkdir -pv $LFS/$(readlink $LFS/dev/shm) 99 else 100 mount -t tmpfs -o nosuid,nodev tmpfs $LFS/dev/shm 94 101 fi</userinput></screen> 95 102
Note:
See TracChangeset
for help on using the changeset viewer.