source: chapter06/revisedchroot.xml@ 6a0e6f3

Last change on this file since 6a0e6f3 was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 19 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4387 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.1 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<section xmlns="http://docbook.org/docbook-ng"
7 xmlns:xlink="http://www.w3.org/1999/xlink"
8 xml:id="ch-system-revisedchroot">
9<title>Cleaning up</title>
10<?dbhtml filename="revisedchroot.html"?>
11
12<para>From now on, when you exit the chroot environment and wish to reenter
13it, 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
21class="directory">/tools</filename> are no longer needed, you may want to
22delete the whole directory and regain the space. Before actually deleting the
23directory, exit from chroot and reenter it with the above command. Also, before
24removing <filename class="directory">/tools</filename>, you may want to tar it
25up and store it in a safe place, in case you want to build another LFS system
26soon.</para>
27
28<note><para>Removing <filename class="directory">/tools</filename> will also
29remove the temporary copies of Tcl, Expect and DejaGNU, which were used for
30running the toolchain tests. If you want to use these programs later on, you
31will need to recompile and re-install them. The installation instructions are
32the same as in <xref linkend="chapter-temporary-tools"/>, apart from changing
33the prefix from <filename class="directory">/tools</filename> to <filename class="directory">/usr</filename>. The
34BLFS book discusses a slightly different approach to installing Tcl, see
35<uri xlink:href="&blfs-root;"/>.</para></note>
36
37<para>You may also want to move the packages and patches stored in <filename
38class="directory">/sources</filename> to a more usual location, such as
39<filename class="directory">/usr/src/packages</filename>, and remove the
40directory -- or simply delete the whole directory if you've burned its contents
41on a CD).</para>
42
43</section>
Note: See TracBrowser for help on using the repository browser.