chroot.xml 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <sect1 id="ch06-chroot">
  2. <title>Entering the chroot'ed environment</title>
  3. <para>
  4. It's time to enter our chroot'ed environment in order to install the
  5. rest of the software we need.
  6. </para>
  7. <para>
  8. Enter the following commands to enter the chroot'ed environment. From
  9. this point on there's no need to use the $LFS variable anymore, because
  10. everything a user does will be restricted to the LFS partition (since / is
  11. actually /mnt/lfs but the shell doesn't know that).
  12. </para>
  13. <blockquote><literallayout>
  14. &c6-chrootcmd;
  15. </literallayout></blockquote>
  16. <para>
  17. The TERM=$TERM construction will set the $TERM value inside
  18. chroot to the same value as outside chroot which is needed for programs
  19. like vim and less to operate properly.
  20. </para>
  21. <para>
  22. Now that we are inside a chroot'ed environment, we can continue to
  23. install all the basic system software. You have to make sure all the
  24. following commands in this and following chapters are run from within the
  25. chroot'ed environment. If you ever leave this environment for any reason
  26. (when rebooting for example) please remember to mount $LFS/proc
  27. again and re-enter chroot before continuing with the
  28. book.
  29. </para>
  30. <para>
  31. Note that the bash prompt will contain "I have no name!" This is
  32. normal because Glibc hasn't been installed yet.
  33. </para>
  34. </sect1>