stages.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  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="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><emphasis>ALL</emphasis> instructions in Chapter&nbsp;5
  36. must be done by user <emphasis>lfs</emphasis>.
  37. A <command>su - lfs</command> needs to be done before any
  38. task in Chapter&nbsp;5.</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, re-extract the package files, and complete all
  45. instructions in that section.</para>
  46. </listitem>
  47. </itemizedlist>
  48. </sect2>
  49. <sect2>
  50. <title>Chapters&nbsp;6&ndash;8</title>
  51. <itemizedlist>
  52. <listitem>
  53. <para>The /mnt/lfs partition must be mounted.</para>
  54. </listitem>
  55. <listitem>
  56. <para> When entering chroot, the LFS environment variable must be set
  57. for root. The LFS variable is not used otherwise.</para>
  58. </listitem>
  59. <listitem>
  60. <para> The virtual file systems must be mounted. This can be done
  61. before or after entering chroot by changing to a host virtual terminal
  62. and, as root, running the commands in
  63. <xref linkend='ch-system-bindmount'/> and
  64. <xref linkend='ch-system-kernfsmount'/>.</para>
  65. </listitem>
  66. </itemizedlist>
  67. </sect2>
  68. </sect1>