aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/revisedchroot.xml
diff options
context:
space:
mode:
authorBruce Dubbs <bdubbs@linuxfromscratch.org>2018-05-07 15:45:11 +0000
committerBruce Dubbs <bdubbs@linuxfromscratch.org>2018-05-07 15:45:11 +0000
commit658dcabf7747fbdb2cf6931b44c796706bab63bd (patch)
tree7a0d4afd6233600960490a9045046b3ad922d21c /chapter06/revisedchroot.xml
parent9de8016928be951de9fbd0e49b6ec2fc53732213 (diff)
Change stripping in Chapter 6 to not require logout.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@11408 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Diffstat (limited to 'chapter06/revisedchroot.xml')
-rw-r--r--chapter06/revisedchroot.xml14
1 files changed, 8 insertions, 6 deletions
diff --git a/chapter06/revisedchroot.xml b/chapter06/revisedchroot.xml
index 8436600f0..10e68daea 100644
--- a/chapter06/revisedchroot.xml
+++ b/chapter06/revisedchroot.xml
@@ -14,18 +14,21 @@
<screen><userinput>rm -rf /tmp/*</userinput></screen>
- <para>From now on, when reentering the chroot environment after
- exiting, use the following modified chroot command:</para>
+ <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>
-<screen role="nodump"><userinput>chroot "$LFS" /usr/bin/env -i \
+<screen role="nodump"><userinput>logout
+
+chroot "$LFS" /usr/bin/env -i \
HOME=/root TERM="$TERM" \
PS1='(lfs chroot) \u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
/bin/bash --login</userinput></screen>
<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>
+ class="directory">/tools</filename> are no longer needed. For this reason
+ you can delete the <filename class="directory">/tools</filename>
directory if so desired.</para>
<note>
@@ -52,7 +55,6 @@ 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/libfl.a
-rm -f /usr/lib/libfl_pic.a
rm -f /usr/lib/libz.a</userinput></screen>
<para>There are also several files installed in the /usr/lib and /usr/libexec