2004-05-03 11:59:46 +01:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
2007-03-21 18:42:58 +00:00
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
2004-05-03 11:59:46 +01:00
|
|
|
<!ENTITY % general-entities SYSTEM "../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
]>
|
2006-02-07 19:39:29 +00:00
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
<sect1 id="ch-system-revisedchroot">
|
2006-02-07 19:39:29 +00:00
|
|
|
<?dbhtml filename="revisedchroot.html"?>
|
|
|
|
|
|
|
|
<title>Cleaning Up</title>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2014-01-14 19:36:32 +00:00
|
|
|
<para>Finally, clean up some extra files left around from running tests:</para>
|
|
|
|
|
2014-01-20 01:18:30 +00:00
|
|
|
<screen><userinput>rm -rf /tmp/*</userinput></screen>
|
2014-01-14 19:36:32 +00:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<para>From now on, when reentering the chroot environment after
|
|
|
|
exiting, use the following modified chroot command:</para>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2014-01-14 19:59:40 +00:00
|
|
|
<screen role="nodump"><userinput>chroot "$LFS" /usr/bin/env -i \
|
2004-05-03 11:59:46 +01:00
|
|
|
HOME=/root TERM="$TERM" PS1='\u:\w\$ ' \
|
2014-01-14 19:59:40 +00:00
|
|
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
|
2004-05-03 11:59:46 +01:00
|
|
|
/bin/bash --login</userinput></screen>
|
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<para>The reason for this is that the programs in <filename
|
|
|
|
class="directory">/tools</filename> are no longer needed. Since they are no
|
|
|
|
longer needed you can delete the <filename class="directory">/tools</filename>
|
|
|
|
directory if so desired.</para>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-02-07 19:39:29 +00:00
|
|
|
<note>
|
|
|
|
<para>Removing <filename class="directory">/tools</filename> will also
|
|
|
|
remove the temporary copies of Tcl, Expect, and DejaGNU which were used
|
|
|
|
for running the toolchain tests. If you need these programs later on,
|
|
|
|
they will need to be recompiled and re-installed. The BLFS book has
|
|
|
|
instructions for this (see <ulink url="&blfs-root;"/>).</para>
|
|
|
|
</note>
|
2005-02-19 22:16:42 +00:00
|
|
|
|
2006-07-21 23:15:49 +01:00
|
|
|
<para>If the virtual kernel file systems have been unmounted, either manually
|
|
|
|
or through a reboot, ensure that the virtual kernel file systems are mounted
|
|
|
|
when reentering the chroot. This process was explained in <xref
|
|
|
|
linkend="ch-system-bindmount"/> and <xref
|
|
|
|
linkend="ch-system-kernfsmount"/>.</para>
|
2006-07-21 20:34:23 +01:00
|
|
|
|
2015-08-23 22:26:36 +01:00
|
|
|
<para>Finally, there were several static libraries that were not supressed earlier
|
2015-03-15 23:29:31 +00:00
|
|
|
in the chapter in order to satisfy the regression tests in several packages. These
|
2015-03-16 15:09:00 +00:00
|
|
|
libraries are from binutils, bzip2, e2fsprogs, <!--flex,--> libtool, and zlib. If desired,
|
2015-03-15 23:29:31 +00:00
|
|
|
remove them now:</para>
|
|
|
|
|
2015-10-12 22:20:03 +01:00
|
|
|
<screen><userinput>rm -f /usr/lib/lib{bfd,opcodes}.a
|
|
|
|
rm -f /usr/lib/libbz2.a
|
|
|
|
rm -f /usr/lib/lib{com_err,e2p,ext2fs,ss}.a
|
|
|
|
rm -f /usr/lib/libltdl.a
|
|
|
|
rm -f /usr/lib/libz.a</userinput></screen>
|
2015-03-15 23:29:31 +00:00
|
|
|
|
2015-03-16 15:09:00 +00:00
|
|
|
<!-- Flex shared library is broken. Keep static until next flex release. -->
|
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
</sect1>
|