[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[1fe35e1] | 2 | <!DOCTYPE section [
|
---|
[673b0d8] | 3 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 4 | %general-entities;
|
---|
| 5 | ]>
|
---|
[1fe35e1] | 6 | <section xmlns="http://docbook.org/docbook-ng"
|
---|
| 7 | xmlns:xlink="http://www.w3.org/1999/xlink"
|
---|
| 8 | xml:id="ch-system-revisedchroot">
|
---|
| 9 | <info><title>Cleaning up</title></info>
|
---|
[673b0d8] | 10 | <?dbhtml filename="revisedchroot.html"?>
|
---|
| 11 |
|
---|
| 12 | <para>From now on, when you exit the chroot environment and wish to reenter
|
---|
| 13 | it, you should use the following modified chroot command:</para>
|
---|
| 14 |
|
---|
| 15 | <screen><userinput>chroot "$LFS" /usr/bin/env -i \
|
---|
| 16 | HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
|
---|
| 17 | PATH=/bin:/usr/bin:/sbin:/usr/sbin \
|
---|
| 18 | /bin/bash --login</userinput></screen>
|
---|
| 19 |
|
---|
| 20 | <para>The reason for this is that, since the programs in <filename
|
---|
| 21 | class="directory">/tools</filename> are no longer needed, you may want to
|
---|
| 22 | delete the whole directory and regain the space. Before actually deleting the
|
---|
| 23 | directory, exit from chroot and reenter it with the above command. Also, before
|
---|
| 24 | removing <filename class="directory">/tools</filename>, you may want to tar it
|
---|
| 25 | up and store it in a safe place, in case you want to build another LFS system
|
---|
| 26 | soon.</para>
|
---|
| 27 |
|
---|
| 28 | <note><para>Removing <filename class="directory">/tools</filename> will also
|
---|
[cb983a8] | 29 | remove the temporary copies of Tcl, Expect and DejaGNU, which were used for
|
---|
[673b0d8] | 30 | running the toolchain tests. If you want to use these programs later on, you
|
---|
| 31 | will need to recompile and re-install them. The installation instructions are
|
---|
| 32 | the same as in <xref linkend="chapter-temporary-tools"/>, apart from changing
|
---|
[8ad7980] | 33 | the prefix from <filename class="directory">/tools</filename> to <filename class="directory">/usr</filename>. The
|
---|
[673b0d8] | 34 | BLFS book discusses a slightly different approach to installing Tcl, see
|
---|
[1fe35e1] | 35 | <uri xlink:href="&blfs-root;"/>.</para></note>
|
---|
[673b0d8] | 36 |
|
---|
| 37 | <para>You may also want to move the packages and patches stored in <filename
|
---|
| 38 | class="directory">/sources</filename> to a more usual location, such as
|
---|
| 39 | <filename class="directory">/usr/src/packages</filename>, and remove the
|
---|
| 40 | directory -- or simply delete the whole directory if you've burned its contents
|
---|
| 41 | on a CD).</para>
|
---|
| 42 |
|
---|
[1fe35e1] | 43 | </section>
|
---|