source: BOOK/partitioning/common/aboutclfs.xml @ 1862e19

systemd
Last change on this file since 1862e19 was 1862e19, checked in by William Harrington <kb0iic@…>, 8 years ago

/mnt/clfs is replaceable. No need to add [ and ].

  • Property mode set to 100644
File size: 2.1 KB
RevLine 
[3f8be484]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3  "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[5585711]4  <!ENTITY % general-entities SYSTEM "../../general.ent">
[3f8be484]5  %general-entities;
6]>
7
[9988ef0]8<sect1 id="ch-final-preps-aboutclfs">
9  <?dbhtml filename="aboutclfs.html"?>
[3f8be484]10
[1390e30]11  <title>Setting The ${CLFS} Variable</title>
[3f8be484]12
[9988ef0]13  <para>Throughout this book, the environment variable <envar>CLFS</envar> will
[63d00be]14  be used several times. You should ensure that this variable is always defined
15  throughout the CLFS build process. It should be set to the name of the
16  directory where you will be building your CLFS system - we will use
17  <filename class="directory">/mnt/clfs</filename> as an example, but the
18  directory choice is up to you. If you are building CLFS 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>
[3f8be484]22
[1862e19]23<screen><userinput>export CLFS=<replaceable>/mnt/clfs</replaceable></userinput></screen>
[3f8be484]24
25  <para>Having this variable set is beneficial in that commands such as
[040521bc]26  <command>install -dv ${CLFS}/tools</command> can be typed literally. The shell
27  will automatically replace <quote>${CLFS}</quote> with
[9988ef0]28  <quote>/mnt/clfs</quote> (or whatever the variable was set to) when it
[3f8be484]29  processes the command line.</para>
30
[040521bc]31  <para>Do not forget to check that <envar>${CLFS}</envar> is set whenever
[63d00be]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
[f35f6d9]34  another user). Check that the <envar>CLFS</envar> variable is set up
35  properly with:</para>
36
37<screen><userinput>echo ${CLFS}</userinput></screen>
38
[63d00be]39  <para>Make sure the output shows the path to your CLFS system's build
40  location, which is <filename class="directory">/mnt/clfs</filename> if the
[f35f6d9]41  provided example was followed. If the output is incorrect, use the command
[63d00be]42  given earlier on this  page to set <envar>${CLFS}</envar> to the correct
[f35f6d9]43  directory name.</para>
[3f8be484]44
45</sect1>
Note: See TracBrowser for help on using the repository browser.