aboutsummaryrefslogtreecommitdiffstats
path: root/chapter04/aboutlfs.xml
blob: b54671b77b61123e73ad0d2d4b9f0291fedc10b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.3//EN" "http://www.oasis-open.org/docbook/xml/4.3/docbookx.dtd" [
  <!ENTITY % general-entities SYSTEM "../general.ent">
  %general-entities;
]>
<sect1 id="prepare-aboutlfs">
<title>About $LFS</title>
<?dbhtml filename="aboutlfs.html"?>

<para>Throughout this book, the environment variable LFS will be used
several times. It is paramount that this variable is always defined.
It should be set to the mount point chosen for the LFS partition.
Check that the LFS variable is set up properly with:</para>

<screen><userinput>echo $LFS</userinput></screen>

<para>Make sure the output shows the path to the LFS partition's mount
point, which is <filename class="directory">/mnt/lfs</filename> if the
provided example was followed. If the output is incorrect, the
variable can be set with:</para>

<screen><userinput>export LFS=/mnt/lfs</userinput></screen>

<para>Having this variable set is beneficial in that commands such as
<command>mkdir $LFS/tools</command> can be typed literally. The shell
will automatically replace <quote>$LFS</quote> with
<quote>/mnt/lfs</quote> (or whatever the variable was set to) when it
processes the command line.</para>

<para>Don't forget to check that <quote>$LFS</quote> is set whenever
you leave and reenter the current working environment (as when doing a
<quote>su</quote> to <emphasis>root</emphasis> or another user).</para>

</sect1>