aboutlfs.xml 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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-preps-aboutlfs">
  8. <?dbhtml filename="aboutlfs.html"?>
  9. <title>About $LFS</title>
  10. <para>Throughout this book, the environment variable <envar>LFS</envar> will
  11. be used. It is paramount that this variable is always defined.
  12. It should be set to the mount point chosen for the LFS partition.
  13. Check that the <envar>LFS</envar> variable is set up properly with:</para>
  14. <screen role="nodump"><userinput>echo $LFS</userinput></screen>
  15. <para>Make sure the output shows the path to the LFS partition's mount
  16. point, which is <filename class="directory">/mnt/lfs</filename> if the
  17. provided example was followed. If the output is incorrect, the
  18. variable can be set with:</para>
  19. <screen role="nodump"><userinput>export LFS=/mnt/lfs</userinput></screen>
  20. <para>Having this variable set is beneficial in that commands such as
  21. <command>mkdir $LFS/tools</command> can be typed literally. The shell
  22. will automatically replace <quote>$LFS</quote> with
  23. <quote>/mnt/lfs</quote> (or whatever the variable was set to) when it
  24. processes the command line.</para>
  25. <para>Do not forget to check that <envar>$LFS</envar> is set whenever
  26. you leave and reenter the current working environment (as when doing a
  27. <command>su</command> to <systemitem class="username">root</systemitem>
  28. or another user).</para>
  29. </sect1>