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