| 1234567891011121314151617181920212223242526272829303132 | <sect1 id="ch02-aboutlfs"><title>About $LFS</title><?dbhtml filename="aboutlfs.html" dir="chapter02"?><para>Please read the following carefully: throughout this book the variable LFS will be used frequently. $LFS must at all times bereplaced with the directory where the partition that contains the LFS system is mounted. How to create and where to mount the partition will beexplained in full detail in Chapter 4. For example, let's assume that the LFS partition is mounted on /mnt/lfs.</para><para>When you are told to run a command like<userinput>./configure --prefix=$LFS/static</userinput> you actually have toexecute <userinput>./configure --prefix=/mnt/lfs/static</userinput>.</para><para>It's important that this is done no matter where it is read; be it incommands entered in a shell, or in a file edited or created.</para><para>A possible solution is to set the environment variable LFS.This way $LFS can be entered literally instead of replacing it with /mnt/lfs. This is accomplished by running: </para><para><screen><userinput>export LFS=/mnt/lfs</userinput></screen></para><para>Now, if you are told to run a command such as<userinput>./configure --prefix=$LFS/static</userinput>, then you may typeit literally. Your shell will replace $LFS with /mnt/lfs when it processesthe command line (meaning when you hit enter after having typed thecommand).</para></sect1>
 |