2004-01-27 22:29:49 +00:00
|
|
|
<sect1 id="ch-prepare-aboutlfs">
|
2001-01-24 00:31:17 +00:00
|
|
|
<title>About $LFS</title>
|
2001-09-26 00:48:31 +01:00
|
|
|
<?dbhtml filename="aboutlfs.html" dir="chapter02"?>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2003-09-02 22:59:18 +01:00
|
|
|
<para>Please read the following paragraphs carefully. Throughout this book the
|
|
|
|
variable LFS will be used frequently. $LFS must at all times be replaced with
|
|
|
|
the directory where the partition that contains the LFS system is mounted. How
|
|
|
|
to create and where to mount the partition will be explained in full detail in
|
2004-02-04 22:23:18 +00:00
|
|
|
<xref linkend="chapter-making-space"/>. For the moment let's assume that the LFS partition
|
2003-10-24 18:28:42 +01:00
|
|
|
is mounted on <filename>/mnt/lfs</filename>.</para>
|
2001-03-23 02:38:02 +00:00
|
|
|
|
2002-09-22 04:01:40 +01:00
|
|
|
<para>When you are told to run a command like
|
2003-09-02 22:59:18 +01:00
|
|
|
<userinput>./configure --prefix=$LFS/tools</userinput>, you actually have to
|
|
|
|
execute <userinput>./configure --prefix=/mnt/lfs/tools</userinput>.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>It's important that this is done no matter where it is read; be it in
|
|
|
|
commands entered in a shell, or in a file edited or created.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2001-07-22 20:45:10 +01:00
|
|
|
<para>A possible solution is to set the environment variable LFS.
|
2001-08-29 17:56:32 +01:00
|
|
|
This way $LFS can be entered literally instead of replacing it with
|
2002-03-29 12:38:41 +00:00
|
|
|
/mnt/lfs. This is accomplished by running: </para>
|
|
|
|
|
2003-10-10 00:22:07 +01:00
|
|
|
<screen><userinput>export LFS=/mnt/lfs</userinput></screen>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-09-22 04:13:20 +01:00
|
|
|
<para>Now, if you are told to run a command such as
|
2003-09-02 22:59:18 +01:00
|
|
|
<userinput>./configure --prefix=$LFS/tools</userinput>, then you may type it
|
|
|
|
literally. Your shell will replace "$LFS" with "/mnt/lfs" when it processes
|
|
|
|
the command line (that is, when you hit Enter after having typed the
|
2002-09-22 04:13:20 +01:00
|
|
|
command).</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|