aboutlfs.xml 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  3. <!ENTITY % general-entities SYSTEM "../general.ent">
  4. %general-entities;
  5. ]>
  6. <sect1 id="prepare-aboutlfs">
  7. <title>About $LFS</title>
  8. <?dbhtml filename="aboutlfs.html"?>
  9. <para>Throughout this book the environment variable LFS will be used several
  10. times. It is paramount that this variable is always defined. It should be set
  11. to the mount point you chose for your LFS partition. Check that your LFS
  12. variable is set up properly with:</para>
  13. <screen><userinput>echo $LFS</userinput></screen>
  14. <para>Make sure the output shows the path to your LFS partition's mount
  15. point, which is <filename class="directory">/mnt/lfs</filename> if you
  16. followed our example. If the output is wrong, you can always set the variable
  17. with:</para>
  18. <screen><userinput>export LFS=/mnt/lfs</userinput></screen>
  19. <para>Having this variable set means that if you are told to run a command like
  20. <command>mkdir $LFS/tools</command>, you can type it literally. Your shell
  21. will replace <quote>$LFS</quote> with <quote>/mnt/lfs</quote> (or whatever
  22. you set the variable to) when it processes the command line.</para>
  23. <para>Don't forget to check that <quote>$LFS</quote> is set whenever you leave and
  24. reenter the environment (as when doing a <quote>su</quote> to root or another user).
  25. </para>
  26. </sect1>