Rev | Line | |
---|
[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[966c6512] | 2 | <!DOCTYPE section [
|
---|
[673b0d8] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[966c6512] | 6 | <section xmlns="http://docbook.org/docbook-ng"
|
---|
| 7 | xml:id="prepare-aboutlfs">
|
---|
| 8 | <info><title>About $LFS</title></info>
|
---|
[673b0d8] | 9 | <?dbhtml filename="aboutlfs.html"?>
|
---|
| 10 |
|
---|
| 11 | <para>Throughout this book the environment variable LFS will be used several
|
---|
| 12 | times. It is paramount that this variable is always defined. It should be set
|
---|
| 13 | to the mount point you chose for your LFS partition. Check that your LFS
|
---|
| 14 | variable is set up properly with:</para>
|
---|
| 15 |
|
---|
| 16 | <screen><userinput>echo $LFS</userinput></screen>
|
---|
| 17 |
|
---|
| 18 | <para>Make sure the output shows the path to your LFS partition's mount
|
---|
| 19 | point, which is <filename class="directory">/mnt/lfs</filename> if you
|
---|
| 20 | followed our example. If the output is wrong, you can always set the variable
|
---|
| 21 | with:</para>
|
---|
| 22 |
|
---|
| 23 | <screen><userinput>export LFS=/mnt/lfs</userinput></screen>
|
---|
| 24 |
|
---|
| 25 | <para>Having this variable set means that if you are told to run a command like
|
---|
[55851d6] | 26 | <command>mkdir $LFS/tools</command>, you can type it literally. Your shell
|
---|
| 27 | will replace <quote>$LFS</quote> with <quote>/mnt/lfs</quote> (or whatever
|
---|
| 28 | you set the variable to) when it processes the command line.</para>
|
---|
[673b0d8] | 29 |
|
---|
| 30 | <para>Don't forget to check that <quote>$LFS</quote> is set whenever you leave and
|
---|
[55851d6] | 31 | reenter the environment (as when doing a <quote>su</quote> to root or another user).
|
---|
[673b0d8] | 32 | </para>
|
---|
| 33 |
|
---|
[966c6512] | 34 | </section>
|
---|
Note:
See
TracBrowser
for help on using the repository browser.