stages.xml 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  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
  23. <systemitem class="username">root</systemitem> user after Section
  24. 2.4 need to have the LFS environment variable set
  25. <emphasis>FOR THE ROOT USER</emphasis>.</para>
  26. </listitem>
  27. </itemizedlist>
  28. </sect2>
  29. <sect2>
  30. <title>Chapter&nbsp;5&ndash;6</title>
  31. <itemizedlist>
  32. <listitem>
  33. <para>The /mnt/lfs partition must be mounted.</para>
  34. </listitem>
  35. <listitem>
  36. <para>These two chapters <emphasis>must</emphasis> be done as user
  37. <systemitem class="username">lfs</systemitem>.
  38. A <command>su - lfs</command> needs to be done before any task in these
  39. chapters. Failing to do that, you are at risk of installing packages to the
  40. host, and potentially rendering it unusable.</para>
  41. </listitem>
  42. <listitem>
  43. <para>The procedures in <xref linkend='ch-tools-generalinstructions'/>
  44. are critical. If there is any
  45. doubt about installing a package, ensure any previously expanded
  46. tarballs are removed, then re-extract the package files, and complete all
  47. instructions in that section.</para>
  48. </listitem>
  49. </itemizedlist>
  50. </sect2>
  51. <sect2>
  52. <title>Chapter&nbsp;7&ndash;10</title>
  53. <itemizedlist>
  54. <listitem>
  55. <para>The /mnt/lfs partition must be mounted.</para>
  56. </listitem>
  57. <listitem>
  58. <para>A few operations, from <quote>Changing Ownership</quote> to
  59. <quote>Entering the Chroot Environment</quote> must be done as the
  60. <systemitem class="username">root</systemitem> user, with the LFS
  61. environment variable set for the
  62. <systemitem class="username">root</systemitem>user.</para>
  63. </listitem>
  64. <listitem>
  65. <para> When entering chroot, the LFS environment variable must be set
  66. for <systemitem class="username">root</systemitem>. The LFS
  67. variable is not used afterwards.</para>
  68. </listitem>
  69. <listitem>
  70. <para> The virtual file systems must be mounted. This can be done
  71. before or after entering chroot by changing to a host virtual terminal
  72. and, as <systemitem class="username">root</systemitem>, running the
  73. commands in
  74. <xref linkend='ch-tools-bindmount'/> and
  75. <xref linkend='ch-tools-kernfsmount'/>.</para>
  76. </listitem>
  77. </itemizedlist>
  78. </sect2>
  79. </sect1>