- Timestamp:
- 11/19/2022 08:27:13 AM (20 months ago)
- 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. - Location:
- chapter07
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter07/chroot.xml
r4d3f41c rb59b371 53 53 54 54 <para>The <parameter>-i</parameter> option given to the <command>env</command> 55 command will clear all variables ofthe environment. After that, only55 command will clear all the variables in the environment. After that, only 56 56 the <envar>HOME</envar>, <envar>TERM</envar>, <envar>PS1</envar>, and 57 57 <envar>PATH</envar> variables are set again. The 58 58 <parameter>TERM=$TERM</parameter> construct will set the <envar>TERM</envar> 59 59 variable to the default value specified by <command>agetty</command>. This variable is 60 needed forprograms like <command>vim</command> and <command>less</command>61 tooperate properly. If other variables are desired, such as60 needed so programs like <command>vim</command> and <command>less</command> 61 can operate properly. If other variables are desired, such as 62 62 <envar>CFLAGS</envar> or <envar>CXXFLAGS</envar>, this is a good place to set 63 them again.</para>63 them.</para> 64 64 65 65 <para>Notice that <filename class="directory">/tools/bin</filename> is not 66 66 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> 68 68 69 69 <para>Note that the <command>bash</command> prompt will say -
chapter07/cleanup.xml
r4d3f41c rb59b371 14 14 <title>Cleaning</title> 15 15 16 <para>First, remove the currently installed documentation to prevent them16 <para>First, remove the currently installed documentation files to prevent them 17 17 from ending up in the final system, and to save about 35 MB:</para> 18 18 … … 20 20 21 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 beloaded by23 libltdl, and it's known that some .la files can cause BLFS package s24 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> 25 25 26 26 <screen><userinput>find /usr/{lib,libexec} -name \*.la -delete</userinput></screen> … … 43 43 backed up for later reuse. In case of fatal failures in the subsequent 44 44 chapters, it often turns out that removing everything and starting over 45 (more carefully) is the best optionto recover. Unfortunately, all the45 (more carefully) is the best way to recover. Unfortunately, all the 46 46 temporary files will be removed, too. To avoid spending extra time to 47 redo something which has been builtsuccessfully, creating a backup of47 redo something which has been done successfully, creating a backup of 48 48 the current LFS system may prove useful. 49 49 </para> … … 72 72 Note that the instructions below specify the home directory of the host 73 73 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. 78 75 Replace <envar>$HOME</envar> by a directory of your choice if you 79 76 do not want to have the backup stored in <systemitem -
chapter07/createfiles.xml
r4d3f41c rb59b371 35 35 </indexterm> 36 36 37 <para>Historically, Linux maintain sa list of the mounted file systems in the37 <para>Historically, Linux maintained a list of the mounted file systems in the 38 38 file <filename>/etc/mtab</filename>. Modern kernels maintain this list 39 39 internally and expose it to the user via the <filename 40 40 class="directory">/proc</filename> filesystem. To satisfy utilities that 41 expect t he presence of<filename>/etc/mtab</filename>, create the following41 expect to find <filename>/etc/mtab</filename>, create the following 42 42 symbolic link:</para> 43 43 … … 160 160 <para>The created groups are not part of any standard—they are groups 161 161 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 Linux162 9, and in part by common conventions employed by a number of existing Linux 163 163 distributions. In addition, some test suites rely on specific users or 164 164 groups. The Linux Standard Base (LSB, available at <ulink … … 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> 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 169 169 <systemitem class="groupname">tty</systemitem> group, and the number 5 is 170 170 also used in <phrase revision="systemd">systemd</phrase> … … 180 180 machine or in the separate namespace). We assign 181 181 <systemitem class="username">nobody</systemitem> and 182 <systemitem class="groupname">nogroup</systemitem> for itto avoid an182 <systemitem class="groupname">nogroup</systemitem> to avoid an 183 183 unnamed ID. But other distros may treat this ID differently, so any 184 184 portable program should not depend on this assignment.</para> -
chapter07/kernfs.xml
r4d3f41c rb59b371 16 16 17 17 <para>Applications running in user space utilize various file 18 systems exported by the kernel to communicate18 systems created by the kernel to communicate 19 19 with the kernel itself. These file systems are virtual: no disk 20 space is used for them. The content of the file systems resides in20 space is used for them. The content of these file systems resides in 21 21 memory.</para> 22 22 23 <para>Begin by creating directories on which thefile systems will be23 <para>Begin by creating the directories on which these virtual file systems will be 24 24 mounted:</para> 25 25 … … 31 31 <para>The kernel has already mounted 32 32 <systemitem class="filesystem">devtmpfs</systemitem>. 33 Mount the remaining virtual kernel file systems:</para>33 Mount the remaining virtual kernel file systems:</para> 34 34 35 35 <screen><userinput>mkdir -pv /dev/{pts,shm}
Note:
See TracChangeset
for help on using the changeset viewer.