1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN" "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd">
3 <sect1 id="ch-system-strippingagain">
4 <title>Stripping Again</title>
5 <?dbhtml filename="strippingagain.html"?>
7 <para>Exit from chroot:</para>
9 <screen><userinput>logout</userinput></screen>
11 <para>Reenter with:</para>
13 <screen><userinput>chroot $LFS /tools/bin/env -i \
14 HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
15 PATH=/bin:/usr/bin:/sbin:/usr/sbin \
16 /tools/bin/bash --login</userinput></screen>
18 <para>Strip the binaries and libraries:</para>
20 <screen><userinput>/tools/bin/find /{,usr/}{bin,lib,sbin} -type f \
21 -exec /tools/bin/strip --strip-debug '{}' ';'</userinput></screen>