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