source: chapter02/aboutlfs.xml@ 448e226

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 7.10 7.10-rc1 7.6 7.6-rc1 7.7 7.7-rc1 7.8 7.8-rc1 7.9 7.9-rc1 7.9-rc2 8.0 8.0-rc1 8.1 8.1-rc1 8.1-rc2 8.2 8.2-rc1 8.3 8.3-rc1 8.3-rc2 8.4 8.4-rc1 9.0 9.0-rc1 9.1 9.1-rc1 BOOK.old cross-chap5 ml-11.0 multilib nosym old-trunk trunk xry111/git-transition xry111/glibc-2.34 xry111/tester-nohack xry111/usr-move
Last change on this file since 448e226 was 448e226, checked in by Bruce Dubbs <bdubbs@…>, 8 years ago

Text changes:

Move about LFS to Chapter 2.
Add intor to Chapter 4.
Explain why specific symlinks are needed in Chapter 6.
Remove obsolete reference to old glibc version.

git-svn-id: 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.3 KB
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "" [
4 <!ENTITY % general-entities SYSTEM "../general.ent">
5 %general-entities;
8<sect1 id="ch-partitioning-aboutlfs">
9 <?dbhtml filename="aboutlfs.html"?>
11 <title>Setting The $LFS Variable</title>
13 <para>Throughout this book, the environment variable <envar>LFS</envar> will
14 be used several times. You should ensure that this variable is always defined
15 throughout the LFS build process. It should be set to the name of the
16 directory where you will be building your LFS system - we will use
17 <filename class="directory">/mnt/lfs</filename> as an example, but the
18 directory choice is up to you. If you are building LFS on a separate
19 partition, this directory will be the mount point for the partition.
20 Choose a directory location and set the variable with the
21 following command:</para>
23<screen role="nodump"><userinput>export LFS=<replaceable>/mnt/lfs</replaceable></userinput></screen>
25 <para>Having this variable set is beneficial in that commands such as
26 <command>mkdir -v $LFS/tools</command> can be typed literally. The shell
27 will automatically replace <quote>$LFS</quote> with
28 <quote>/mnt/lfs</quote> (or whatever the variable was set to) when it
29 processes the command line.</para>
31 <para>Do not forget to check that <envar>LFS</envar> is set whenever
32 you leave and reenter the current working environment (such as when doing a
33 <command>su</command> to <systemitem class="username">root</systemitem> or
34 another user). Check that the <envar>LFS</envar> variable is set up
35 properly with:</para>
37<screen role="nodump"><userinput>echo $LFS</userinput></screen>
39 <para>Make sure the output shows the path to your LFS system's build
40 location, which is <filename class="directory">/mnt/lfs</filename> if the
41 provided example was followed. If the output is incorrect, use the command
42 given earlier on this page to set <envar>$LFS</envar> to the correct
43 directory name.</para>
45 <note><para>One way to ensure that the <envar>LFS</envar> variable is always
46 set is to edit the <filename>.bash_profile</filename> file in both your
47 personal home directory and in <filename>/root/.bash_profile</filename> and
48 enter the export command above. </para></note>
Note: See TracBrowser for help on using the repository browser.