mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 14:24:48 +00:00
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
This commit is contained in:
parent
9de8016928
commit
658dcabf77
@ -43,6 +43,16 @@
|
|||||||
appropriate for the entry or if needed the entire day's listitem.
|
appropriate for the entry or if needed the entire day's listitem.
|
||||||
-->
|
-->
|
||||||
|
|
||||||
|
<listitem>
|
||||||
|
<para>2018-05-07</para>
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem>
|
||||||
|
<para>[bdubbs] - Change stripping in Chapter 6 to not
|
||||||
|
require logout.</para>
|
||||||
|
</listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</listitem>
|
||||||
|
|
||||||
<listitem>
|
<listitem>
|
||||||
<para>2018-05-05</para>
|
<para>2018-05-05</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
@ -14,18 +14,21 @@
|
|||||||
|
|
||||||
<screen><userinput>rm -rf /tmp/*</userinput></screen>
|
<screen><userinput>rm -rf /tmp/*</userinput></screen>
|
||||||
|
|
||||||
<para>From now on, when reentering the chroot environment after
|
<para>Now log out and reenter the chroot environment with an updated
|
||||||
exiting, use the following modified chroot command:</para>
|
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" \
|
HOME=/root TERM="$TERM" \
|
||||||
PS1='(lfs chroot) \u:\w\$ ' \
|
PS1='(lfs chroot) \u:\w\$ ' \
|
||||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
|
||||||
/bin/bash --login</userinput></screen>
|
/bin/bash --login</userinput></screen>
|
||||||
|
|
||||||
<para>The reason for this is that the programs in <filename
|
<para>The reason for this is that the programs in <filename
|
||||||
class="directory">/tools</filename> are no longer needed. Since they are no
|
class="directory">/tools</filename> are no longer needed. For this reason
|
||||||
longer needed you can delete the <filename class="directory">/tools</filename>
|
you can delete the <filename class="directory">/tools</filename>
|
||||||
directory if so desired.</para>
|
directory if so desired.</para>
|
||||||
|
|
||||||
<note>
|
<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/lib{com_err,e2p,ext2fs,ss}.a
|
||||||
rm -f /usr/lib/libltdl.a
|
rm -f /usr/lib/libltdl.a
|
||||||
rm -f /usr/lib/libfl.a
|
rm -f /usr/lib/libfl.a
|
||||||
rm -f /usr/lib/libfl_pic.a
|
|
||||||
rm -f /usr/lib/libz.a</userinput></screen>
|
rm -f /usr/lib/libz.a</userinput></screen>
|
||||||
|
|
||||||
<para>There are also several files installed in the /usr/lib and /usr/libexec
|
<para>There are also several files installed in the /usr/lib and /usr/libexec
|
||||||
|
@ -58,9 +58,15 @@ done
|
|||||||
unset LIB save_lib save_usrlib</userinput></screen>
|
unset LIB save_lib save_usrlib</userinput></screen>
|
||||||
|
|
||||||
<para>Before performing the stripping, take special care to ensure that
|
<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
|
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>
|
chroot:</para>
|
||||||
|
|
||||||
<screen role="nodump"><userinput>logout</userinput></screen>
|
<screen role="nodump"><userinput>logout</userinput></screen>
|
||||||
@ -71,7 +77,7 @@ unset LIB save_lib save_usrlib</userinput></screen>
|
|||||||
HOME=/root TERM=$TERM \
|
HOME=/root TERM=$TERM \
|
||||||
PS1='(lfs chroot) \u:\w\$ ' \
|
PS1='(lfs chroot) \u:\w\$ ' \
|
||||||
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
|
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>
|
<para>Now the binaries and libraries can be safely stripped:</para>
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
<!ENTITY version "SVN-20180505">
|
<!ENTITY version "SVN-20180507">
|
||||||
<!ENTITY short-version "svn"> <!-- Used below in &blfs-book;
|
<!ENTITY short-version "svn"> <!-- Used below in &blfs-book;
|
||||||
Change to x.y for release but not -rc releases -->
|
Change to x.y for release but not -rc releases -->
|
||||||
<!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" -->
|
<!ENTITY generic-version "development"> <!-- Use "development" or "x.y[-pre{x}]" -->
|
||||||
|
|
||||||
<!ENTITY versiond "20180505-systemd">
|
<!ENTITY versiond "20180507-systemd">
|
||||||
<!ENTITY short-versiond "systemd">
|
<!ENTITY short-versiond "systemd">
|
||||||
<!ENTITY generic-versiond "systemd">
|
<!ENTITY generic-versiond "systemd">
|
||||||
|
|
||||||
<!ENTITY releasedate "May 5, 2018">
|
<!ENTITY releasedate "May 7, 2018">
|
||||||
|
|
||||||
<!ENTITY copyrightdate "1999-2018"><!-- jhalfs needs a literal dash, not – -->
|
<!ENTITY copyrightdate "1999-2018"><!-- jhalfs needs a literal dash, not – -->
|
||||||
<!ENTITY milestone "8.3">
|
<!ENTITY milestone "8.3">
|
||||||
|
Loading…
Reference in New Issue
Block a user