Changeset cbc99c8
- Timestamp:
- 07/01/2005 11:36:35 PM (19 years ago)
- Branches:
- 6.1, 6.1.1
- Children:
- 6169f0c
- Parents:
- 808f5af
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
chapter01/changelog.xml
r808f5af rcbc99c8 88 88 </listitem> 89 89 90 <listitem><para>July 1st, 2005 [archaic]: Several minor wording changes in 91 chapter 6 (matt).</para></listitem> 92 90 93 <listitem><para>July 1st, 2005 [archaic]: Brought all occurences of 91 94 LFS-Bootscripts into conformity.</para></listitem> -
chapter06/chroot.xml
r808f5af rcbc99c8 38 38 (<filename class="directory">/</filename>) directory.</para> 39 39 40 <para>Notice that <filename class="directory">/tools/bin</filename> 41 comes last in the <envar>PATH</envar>. This means that a 42 temporary tool will not be used anymore as soon as its final version 43 is installed. This occurs when the shell does not <quote>remember</quote> the 44 locations of executed binaries—for this reason, hashing is switched 45 off by passing the <parameter>+h</parameter> optionto <command>bash</command>.</para>40 <para>Notice that <filename class="directory">/tools/bin</filename> comes last 41 in the <envar>PATH</envar>. This means that a temporary tool will no longer be 42 used once its final version is installed. This occurs when the shell does not 43 <quote>remember</quote> the locations of executed binaries—for this 44 reason, hashing is switched off by passing the <parameter>+h</parameter> option 45 to <command>bash</command>.</para> 46 46 47 47 <para>It is important that all the commands throughout the remainder -
chapter06/createfiles.xml
r808f5af rcbc99c8 8 8 <?dbhtml filename="createfiles.html"?> 9 9 10 <para>Some programs use hard-wired paths to programs which do not yet11 exist. In order to satisfy these programs, create a number of symbolic 12 links which will be replaced by real files throughout the course of 13 this chapter after the softwarehas been installed.</para>10 <para>Some programs use hard-wired paths to programs which do not exist yet. In 11 order to satisfy these programs, create a number of symbolic links which will be 12 replaced by real files throughout the course of this chapter after the software 13 has been installed.</para> 14 14 15 15 <screen><userinput>ln -s /tools/bin/{bash,cat,pwd,stty} /bin -
chapter06/creatingdirs.xml
r808f5af rcbc99c8 50 50 <title>FHS Compliance Note</title> 51 51 52 <para>The directory tree is based on the Filesystem Hierarchy Standard 53 (FHS) standard (available at <ulink 54 url="http://www.pathname.com/fhs/"/>). Besides the tree created above, 55 this standard stipulates the existence of <filename 52 <para>The directory tree is based on the Filesystem Hierarchy Standard (FHS) 53 (available at <ulink url="http://www.pathname.com/fhs/"/>). In addition 54 to the tree created above, this standard stipulates the existence of <filename 56 55 class="directory">/usr/local/games</filename> and <filename 57 class="directory">/usr/share/games</filename>. We do not recommend58 these for a base system, however, feel free to make the system 59 FHS-compliant. The FHS is not precise as to the structure of the 60 <filename class="directory">/usr/local/share</filename> subdirectory, 61 so we created only the directories that are needed.</para>56 class="directory">/usr/share/games</filename>. The FHS is not precise as to the 57 structure of the <filename class="directory">/usr/local/share</filename> 58 subdirectory, so we create only the directories that are needed. However, feel 59 free to create these directories if you prefer to conform more strictly to the 60 FHS standard.</para> 62 61 63 62 </sect2> -
chapter06/glibc.xml
r808f5af rcbc99c8 111 111 112 112 <listitem><para>If you have mounted the LFS partition with the 113 <parameter>noatime</parameter> option, the <emphasis>atime</emphasis> 114 test will fail. This is not critical.</para></listitem> 113 <parameter>noatime</parameter> option, the <emphasis>atime</emphasis> test will 114 fail. As mentioned in <xref linkend="space-mounting"/>, do not use the 115 <parameter>noatime</parameter> option while building LFS.</para></listitem> 115 116 116 117 <listitem><para>When running on older and slower hardware, some tests … … 194 195 <indexterm zone="conf-glibc"><primary sortas="e-/etc/localtime">/etc/localtime</primary></indexterm> 195 196 196 <para>The <filename>/etc/nsswitch.conf</filename> file needs to be 197 created because, although Glibc provides defaults when this file is 198 missing or corrupt, the Glibc defaults do not work well with 199 networking. The time zone also needs to be set up.</para>197 <para>The <filename>/etc/nsswitch.conf</filename> file needs to be created 198 because, although Glibc provides defaults when this file is missing or corrupt, 199 the Glibc defaults do not work well in a networked environment. The time zone 200 also needs to be configured.</para> 200 201 201 202 <para>Create a new file <filename>/etc/nsswitch.conf</filename> by running the … … 233 234 /etc/localtime</userinput></screen> 234 235 235 <para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone that the236 <command>tzselect</command> provided (e.g., Canada/Eastern).</para>236 <para>Replace <replaceable>[xxx]</replaceable> with the name of the time zone 237 that <command>tzselect</command> provided (e.g., Canada/Eastern).</para> 237 238 238 239 <para>The meaning of the cp option:</para> -
chapter06/kernfs.xml
r808f5af rcbc99c8 8 8 <?dbhtml filename="kernfs.html"?> 9 9 10 <para>Various file systems exported by the kernel do not exist on the11 hard drive, but are used to communicate to and from the kernel 12 itself.</para>10 <para>Various file systems exported by the kernel are used to communicate to and 11 from the kernel itself. These file systems are virtual in that no disk space is 12 used for them. The contents of the file systems resides in memory.</para> 13 13 14 14 <para>Begin by creating directories onto which the file systems will be mounted:</para> -
chapter06/pwdgroup.xml
r808f5af rcbc99c8 51 51 EOF</userinput></screen> 52 52 53 <para>The created groups are not part of any standard—they are some 54 of the groups that the Udev configuration will be using in the next 55 section. The Linux Standard Base (LSB, available at <ulink 56 url="http://www.linuxbase.org"/>) recommends only that, besides the 57 group <quote>root</quote> with a Group ID (GID) of 0, a group 58 <quote>bin</quote> with a GID of 1 be present. All other group names 59 and GIDs can be chosen freely by the system administrator since 60 well-written packages do not depend on GID numbers, but rather use the 61 group's name.</para> 53 <para>The created groups are not part of any standard—they are some of the 54 groups that the Udev configuration will use in the next section. The Linux 55 Standard Base (LSB, available at <ulink url="http://www.linuxbase.org"/>) 56 recommends only that, besides the group <quote>root</quote> with a Group ID 57 (GID) of 0, a group <quote>bin</quote> with a GID of 1 be present. All other 58 group names and GIDs can be chosen freely by the system administrator since 59 well-written packages do not depend on GID numbers, but rather use the group's 60 name.</para> 62 61 63 62 <para>To remove the <quote>I have no name!</quote> prompt, start a new -
chapter06/readjusting.xml
r808f5af rcbc99c8 8 8 <?dbhtml filename="readjusting.html"?> 9 9 10 <para>Now that the new and final C libraries have been installed, it 11 is time to adjust the toolchain again. The toolchain will be adjusted 12 so that it will link any newly compiled program against these new 13 libraries. This is the same process used in the 14 <quote>Adjusting</quote> phase in the beginning of <xref 15 linkend="chapter-temporary-tools"/>, even though it looks to be 16 reversed. In <xref linkend="chapter-temporary-tools"/>, the chain was 17 guided from the host's <filename 18 class="directory">/{,usr/}lib</filename> directories to the new 19 <filename class="directory">/tools/lib</filename> directory. Now, the 20 chain will be guided from that same <filename 21 class="directory">/tools/lib</filename> directory to the LFS 22 <filename class="directory">/{,usr/}lib</filename> directories.</para> 10 <para>Now that the final C libraries have been installed, it is time to adjust 11 the toolchain again. The toolchain will be adjusted so that it will link any 12 newly compiled program against these new libraries. This is the same process 13 used in the <quote>Adjusting</quote> phase in the beginning of <xref 14 linkend="chapter-temporary-tools"/>, but with the adjustments reversed. In <xref 15 linkend="chapter-temporary-tools"/>, the chain was guided from the host's 16 <filename class="directory">/{,usr/}lib</filename> directories to the new 17 <filename class="directory">/tools/lib</filename> directory. Now, the chain will 18 be guided from that same <filename class="directory">/tools/lib</filename> 19 directory to the LFS <filename class="directory">/{,usr/}lib</filename> 20 directories.</para> 23 21 24 <para>Start by adjusting the linker. The source and build directories 25 from the second pass over Binutils were retained for this purpose. 26 Install the adjusted linker by running the following command from 27 within the <filename class="directory">binutils-build</filename> 28 directory:</para> 22 <para>Start by adjusting the linker. The source and build directories from the 23 second pass of Binutils were retained for this purpose. Install the adjusted 24 linker by running the following command from within the <filename 25 class="directory">binutils-build</filename> directory:</para> 29 26 30 27 <screen><userinput>make -C ld INSTALL=/tools/bin/install install</userinput></screen>
Note:
See TracChangeset
for help on using the changeset viewer.