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
|
|
|
|
2018-05-07 16:45:11 +01:00
|
|
|
<para>Now log out and reenter the chroot environment with an updated
|
|
|
|
chroot command. From now on, use this updated chroot command any time
|
|
|
|
you need to reenter the chroot environment after exiting:</para>
|
2004-05-03 11:59:46 +01:00
|
|
|
|
2018-05-07 16:45:11 +01:00
|
|
|
<screen role="nodump"><userinput>logout
|
|
|
|
|
|
|
|
chroot "$LFS" /usr/bin/env -i \
|
2017-10-15 02:55:30 +01:00
|
|
|
HOME=/root TERM="$TERM" \
|
|
|
|
PS1='(lfs chroot) \u:\w\$ ' \
|
|
|
|
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
|
2018-05-07 16:45:11 +01:00
|
|
|
class="directory">/tools</filename> are no longer needed. For this reason
|
|
|
|
you can delete the <filename class="directory">/tools</filename>
|
2006-02-07 19:39:29 +00:00
|
|
|
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
|
|
|
|
2017-12-19 19:59:24 +00:00
|
|
|
<para>There were several static libraries that were not suppressed earlier
|
2015-03-15 23:29:31 +00:00
|
|
|
in the chapter in order to satisfy the regression tests in several packages. These
|
2016-02-26 19:59:11 +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
|
2016-02-26 19:59:11 +00:00
|
|
|
rm -f /usr/lib/libfl.a
|
2015-10-12 22:20:03 +01:00
|
|
|
rm -f /usr/lib/libz.a</userinput></screen>
|
2015-03-15 23:29:31 +00:00
|
|
|
|
2018-04-11 22:37:07 +01:00
|
|
|
<para>There are also several files installed in the /usr/lib and /usr/libexec
|
|
|
|
directories with a file name extention of .la. These are "libtool archive"
|
|
|
|
files and generally unneeded on a linux system. None of these are necessary
|
|
|
|
at this point. To remove them, run:</para>
|
2017-12-19 19:59:24 +00:00
|
|
|
|
2018-04-11 22:37:07 +01:00
|
|
|
<screen><userinput>find /usr/lib /usr/libexec -name \*.la -delete</userinput></screen>
|
2017-12-19 19:59:24 +00:00
|
|
|
|
2018-01-10 18:57:37 +00:00
|
|
|
<para>For more information about libtool archive files, see the <ulink
|
2017-12-19 19:59:24 +00:00
|
|
|
url="&blfs-book;/introduction/la-files.html">BLFS section "About Libtool
|
2018-01-10 18:57:37 +00:00
|
|
|
Archive (.la) files"</ulink>.</para>
|
2017-12-19 19:59:24 +00:00
|
|
|
|
2004-05-03 11:59:46 +01:00
|
|
|
</sect1>
|