stages.xml 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-partitioning-stages">
  8. <?dbhtml filename="stages.html"?>
  9. <title>Building LFS in Stages</title>
  10. <para>LFS is designed to be built in one session. That is, the
  11. instructions assume that the system will not be shut down
  12. during the process. That does not mean that the system has to
  13. be done in one sitting. The issue is that certain procedures
  14. have to be re-accomplished after a reboot if resuming LFS at
  15. different points.</para>
  16. <sect2>
  17. <title>Chapters&nbsp;1&ndash;4</title>
  18. <para>These chapters are accomplished on the host system. When
  19. restarting, be careful of the following:</para>
  20. <itemizedlist>
  21. <listitem>
  22. <para>Procedures done as the root user after Section 2.4 need to
  23. have the LFS environment variable set <emphasis>FOR THE ROOT
  24. USER</emphasis>.</para>
  25. </listitem>
  26. </itemizedlist>
  27. </sect2>
  28. <sect2>
  29. <title>Chapter&nbsp;5</title>
  30. <itemizedlist>
  31. <listitem>
  32. <para>The /mnt/lfs partition must be mounted.</para>
  33. </listitem>
  34. <listitem>
  35. <para>This chapter includes three parts. The first one, from
  36. <quote>Binutils Pass1</quote> to <quote>Stripping</quote>
  37. must be done by user <emphasis>lfs</emphasis>. A
  38. <command>su - lfs</command> needs to be done before any task in this
  39. part. The second part, from <quote>Changing Ownership</quote> to
  40. <quote>Entering the Chroot Environment</quote> must be done as the
  41. root user, with LFS set for the root user. The third part, from
  42. <quote>Creating Directories</quote> to the end of the chapter, is done
  43. in the chroot environment. The same procedures as for chapter 6
  44. apply.</para>
  45. </listitem>
  46. <listitem>
  47. <para>The procedures in <xref linkend='ch-tools-generalinstructions'/>
  48. are critical. If there is any
  49. doubt about installing a package, ensure any previously expanded
  50. tarballs are removed, re-extract the package files, and complete all
  51. instructions in that section.</para>
  52. </listitem>
  53. </itemizedlist>
  54. </sect2>
  55. <sect2>
  56. <title>Chapters&nbsp;6&ndash;8</title>
  57. <itemizedlist>
  58. <listitem>
  59. <para>The /mnt/lfs partition must be mounted.</para>
  60. </listitem>
  61. <listitem>
  62. <para> When entering chroot, the LFS environment variable must be set
  63. for root. The LFS variable is not used otherwise.</para>
  64. </listitem>
  65. <listitem>
  66. <para> The virtual file systems must be mounted. This can be done
  67. before or after entering chroot by changing to a host virtual terminal
  68. and, as root, running the commands in
  69. <xref linkend='ch-system-bindmount'/> and
  70. <xref linkend='ch-system-kernfsmount'/>.</para>
  71. </listitem>
  72. </itemizedlist>
  73. </sect2>
  74. </sect1>