aboutsummaryrefslogtreecommitdiffstats
path: root/chapter06/strippingagain.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/strippingagain.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/strippingagain.xml')
-rw-r--r--chapter06/strippingagain.xml12
1 files changed, 9 insertions, 3 deletions
diff --git a/chapter06/strippingagain.xml b/chapter06/strippingagain.xml
index 821ac8315..f9cb7b5f4 100644
--- a/chapter06/strippingagain.xml
+++ b/chapter06/strippingagain.xml
@@ -58,9 +58,15 @@ done
unset LIB save_lib save_usrlib</userinput></screen>
<para>Before performing the stripping, take special care to ensure that
- none of the binaries that are about to be stripped are running. If
+ none of the binaries that are about to be stripped are running:</para>
+
+<screen role="nodump"><userinput>exec /tools/bin/bash</userinput></screen>
+
+ <!--
+ If
unsure whether the user entered chroot with the command given in
- <xref linkend="ch-system-chroot" role=","/> first exit from
+ <xref linkend="ch-system-chroot" role=","/> first use the version
+ of bash we created in
chroot:</para>
<screen role="nodump"><userinput>logout</userinput></screen>
@@ -71,7 +77,7 @@ unset LIB save_lib save_usrlib</userinput></screen>
HOME=/root TERM=$TERM \
PS1='(lfs chroot) \u:\w\$ ' \
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
- /tools/bin/bash --login</userinput></screen>
+ /tools/bin/bash - -login</userinput></screen>-->
<para>Now the binaries and libraries can be safely stripped:</para>