chroot.po 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. # SOME DESCRIPTIVE TITLE
  2. # Copyright (C) YEAR Free Software Foundation, Inc.
  3. # This file is distributed under the same license as the PACKAGE package.
  4. # FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
  5. #
  6. #, fuzzy
  7. msgid ""
  8. msgstr ""
  9. "Project-Id-Version: PACKAGE VERSION\n"
  10. "POT-Creation-Date: 2020-06-17 12:44+0800\n"
  11. "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
  12. "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  13. "Language-Team: LANGUAGE <LL@li.org>\n"
  14. "Language: \n"
  15. "MIME-Version: 1.0\n"
  16. "Content-Type: text/plain; charset=UTF-8\n"
  17. "Content-Transfer-Encoding: 8bit\n"
  18. #. type: Content of: <sect1><title>
  19. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/chroot.xml:11
  20. msgid "Entering the Chroot Environment"
  21. msgstr ""
  22. #. type: Content of: <sect1><para>
  23. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/chroot.xml:13
  24. msgid ""
  25. "Now that all the packages which are required to build the rest of the needed "
  26. "tools are on the system, it is time to enter the chroot environment to "
  27. "finish installing the remaining temporary tools. This environment will be in "
  28. "use also for installing the final system. As user <systemitem "
  29. "class=\"username\">root</systemitem>, run the following command to enter the "
  30. "environment that is, at the moment, populated with only the temporary tools:"
  31. msgstr ""
  32. #. type: Content of: <sect1><screen>
  33. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/chroot.xml:21
  34. #, no-wrap
  35. msgid ""
  36. "<userinput>chroot \"$LFS\" /usr/bin/env -i \\\n"
  37. " HOME=/root \\\n"
  38. " TERM=\"$TERM\" \\\n"
  39. " PS1='(lfs chroot) \\u:\\w\\$ ' \\\n"
  40. " PATH=/bin:/usr/bin:/sbin:/usr/sbin \\\n"
  41. " /bin/bash --login +h</userinput>"
  42. msgstr ""
  43. #. type: Content of: <sect1><para>
  44. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/chroot.xml:28
  45. msgid ""
  46. "The <parameter>-i</parameter> option given to the <command>env</command> "
  47. "command will clear all variables of the chroot environment. After that, only "
  48. "the <envar>HOME</envar>, <envar>TERM</envar>, <envar>PS1</envar>, and "
  49. "<envar>PATH</envar> variables are set again. The "
  50. "<parameter>TERM=$TERM</parameter> construct will set the <envar>TERM</envar> "
  51. "variable inside chroot to the same value as outside chroot. This variable is "
  52. "needed for programs like <command>vim</command> and <command>less</command> "
  53. "to operate properly. If other variables are desired, such as "
  54. "<envar>CFLAGS</envar> or <envar>CXXFLAGS</envar>, this is a good place to "
  55. "set them again."
  56. msgstr ""
  57. #. type: Content of: <sect1><para>
  58. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/chroot.xml:39
  59. msgid ""
  60. "From this point on, there is no need to use the <envar>LFS</envar> variable "
  61. "anymore because all work will be restricted to the LFS file system. This is "
  62. "because the Bash shell is told that <filename "
  63. "class=\"directory\">$LFS</filename> is now the root (<filename "
  64. "class=\"directory\">/</filename>) directory."
  65. msgstr ""
  66. #. type: Content of: <sect1><para>
  67. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/chroot.xml:45
  68. msgid ""
  69. "Notice that <filename class=\"directory\">/tools/bin</filename> is not in "
  70. "the <envar>PATH</envar>. This means that a temporary tool will no longer be "
  71. "used once its final version is installed. This occurs when the shell does "
  72. "not <quote>remember</quote> the locations of executed binaries&mdash;for "
  73. "this reason, hashing is switched off by passing the "
  74. "<parameter>+h</parameter> option to <command>bash</command>."
  75. msgstr ""
  76. #. type: Content of: <sect1><para>
  77. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/chroot.xml:52
  78. msgid ""
  79. "Note that the <command>bash</command> prompt will say <computeroutput>I have "
  80. "no name!</computeroutput> This is normal because the "
  81. "<filename>/etc/passwd</filename> file has not been created yet."
  82. msgstr ""
  83. #. type: Content of: <sect1><note><para>
  84. #: /home/xry111/svn-repos/LFS-BOOK/chapter07/chroot.xml:57
  85. msgid ""
  86. "It is important that all the commands throughout the remainder of this "
  87. "chapter and the following chapters are run from within the chroot "
  88. "environment. If you leave this environment for any reason (rebooting for "
  89. "example), ensure that the virtual kernel filesystems are mounted as "
  90. "explained in <xref linkend=\"ch-system-bindmount\"/> and <xref "
  91. "linkend=\"ch-system-kernfsmount\"/> and enter chroot again before continuing "
  92. "with the installation."
  93. msgstr ""