mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-06 06:14:47 +00:00
Chapter 9: Reworked final strip command. Relocated paragraphs about directory removal from Chapter 6.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2992 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
parent
1fb160c30c
commit
821f799640
@ -96,7 +96,11 @@
|
|||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</listitem>
|
</listitem>
|
||||||
|
|
||||||
<listitem><para>October 13th, 2003 [greg]: Chapter 8 - Making the LFS system
|
<listitem><para>October 15th, 2003 [greg]: Chapter 9: Reworked final strip
|
||||||
|
command. Relocated paragraphs about directory removal from Chapter
|
||||||
|
6.</para></listitem>
|
||||||
|
|
||||||
|
<listitem><para>October 14th, 2003 [greg]: Chapter 8 - Making the LFS system
|
||||||
bootable: Expand Grub details and add a warning.</para></listitem>
|
bootable: Expand Grub details and add a warning.</para></listitem>
|
||||||
|
|
||||||
<listitem><para>October 14th, 2003 [alex]: Appendix A - Updating the contents
|
<listitem><para>October 14th, 2003 [alex]: Appendix A - Updating the contents
|
||||||
|
@ -10,18 +10,10 @@ it, you should run the following modified chroot command:</para>
|
|||||||
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>Additionally, now that all software has been installed, there is no longer
|
<para>The reason being there is no longer any need to use programs from the
|
||||||
a need for the <filename class="directory">/tools</filename> directory. You may
|
<filename class="directory">/tools</filename> directory. However, we don't
|
||||||
delete it. As this will also remove the temporary copies of Tcl, Expect and
|
want to remove the <filename class="directory">/tools</filename> directory
|
||||||
DejaGnu, which were used for running the toolchain tests, you will need to
|
just yet. There is still some use for it towards the end of the book.</para>
|
||||||
recompile and re-install them on your LFS system if you want to use these
|
|
||||||
programs later.</para>
|
|
||||||
|
|
||||||
<para>Also you may now want to move the contents of
|
|
||||||
<filename class="directory">/sources</filename> to
|
|
||||||
<filename class="directory">/usr/src/packages</filename> or something similar
|
|
||||||
(or simply delete them if you've burned them on a CD) and delete the
|
|
||||||
directory.</para>
|
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
@ -86,7 +86,7 @@ timeout 30
|
|||||||
color green/black light-green/black
|
color green/black light-green/black
|
||||||
|
|
||||||
# The first entry is for LFS.
|
# The first entry is for LFS.
|
||||||
title LFS 5.0
|
title LFS &milestone;
|
||||||
root (hd0,3)
|
root (hd0,3)
|
||||||
kernel /boot/lfskernel root=/dev/hda4 ro
|
kernel /boot/lfskernel root=/dev/hda4 ro
|
||||||
<userinput>EOF</userinput></screen>
|
<userinput>EOF</userinput></screen>
|
||||||
|
@ -12,6 +12,19 @@ umount /dev/pts</userinput></screen>
|
|||||||
<para>Exit the chroot environment:</para>
|
<para>Exit the chroot environment:</para>
|
||||||
<screen><userinput>logout</userinput></screen>
|
<screen><userinput>logout</userinput></screen>
|
||||||
|
|
||||||
|
<para>Additionally, now that all software has been installed, there is no longer
|
||||||
|
a need for the <filename class="directory">/tools</filename> directory. You may
|
||||||
|
delete it. As this will also remove the temporary copies of Tcl, Expect and
|
||||||
|
DejaGnu, which were used for running the toolchain tests, you will need to
|
||||||
|
recompile and re-install them on your LFS system if you want to use these
|
||||||
|
programs later.</para>
|
||||||
|
|
||||||
|
<para>Also you may now want to move the contents of
|
||||||
|
<filename class="directory">/sources</filename> to
|
||||||
|
<filename class="directory">/usr/src/packages</filename> or something similar
|
||||||
|
(or simply delete them if you've burned them on a CD) and delete the
|
||||||
|
directory.</para>
|
||||||
|
|
||||||
<para>Before we reboot, let's unmount the LFS partition itself:</para>
|
<para>Before we reboot, let's unmount the LFS partition itself:</para>
|
||||||
|
|
||||||
<screen><userinput>umount $LFS</userinput></screen>
|
<screen><userinput>umount $LFS</userinput></screen>
|
||||||
@ -27,9 +40,9 @@ umount $LFS</userinput></screen>
|
|||||||
|
|
||||||
<screen><userinput>/sbin/shutdown -r now</userinput></screen>
|
<screen><userinput>/sbin/shutdown -r now</userinput></screen>
|
||||||
|
|
||||||
<para>At the Grub menu make sure that you tell it to boot
|
<para>Assuming the Grub boot loader was set up as outlined earlier, the
|
||||||
<emphasis>lfs</emphasis> and not the default entry which will boot your
|
default menu should be set to boot <emphasis>LFS &milestone;</emphasis>
|
||||||
host system again.</para>
|
automatically.</para>
|
||||||
|
|
||||||
<para>After you have rebooted, your LFS system is ready for use and you
|
<para>After you have rebooted, your LFS system is ready for use and you
|
||||||
can start adding your own software.</para>
|
can start adding your own software.</para>
|
||||||
|
@ -30,16 +30,33 @@ the strip man page for other strip options you can use. The general idea
|
|||||||
is to not run strip on libraries (other than --strip-debug), just to be
|
is to not run strip on libraries (other than --strip-debug), just to be
|
||||||
on the safe side.</para>
|
on the safe side.</para>
|
||||||
|
|
||||||
<screen><userinput>find $LFS/{,usr/,usr/local/}{bin,sbin,lib} -type f \
|
<para>If you are planning to go ahead and perform the strip, special care is
|
||||||
-exec /usr/bin/strip --strip-debug '{}' ';'</userinput></screen>
|
needed to ensure you're not running any binaries that are about to be stripped
|
||||||
|
-- including the active bash shell. Therefore you'll need to exit the chroot
|
||||||
|
environemnt and reenter it using a modified chroot command:</para>
|
||||||
|
|
||||||
<para>It may be a good idea to create the $LFS/etc/lfs file. By
|
<screen><userinput>logout
|
||||||
|
chroot $LFS /tools/bin/env -i \
|
||||||
|
HOME=/root TERM=$TERM PS1='\u:\w\$ ' \
|
||||||
|
PATH=/bin:/usr/bin:/sbin:/usr/sbin \
|
||||||
|
/tools/bin/bash --login</userinput></screen>
|
||||||
|
|
||||||
|
<para>Now run the following command:</para>
|
||||||
|
|
||||||
|
<screen><userinput>/tools/bin/find /{,usr/,usr/local/}{bin,sbin,lib} -type f \
|
||||||
|
-exec /tools/bin/strip --strip-debug '{}' ';'</userinput></screen>
|
||||||
|
|
||||||
|
<para>Quite a number of files will be reported as having their file format not
|
||||||
|
recognized. Most of these are scripts instead of binaries. These warnings can
|
||||||
|
be safely ignored.</para>
|
||||||
|
|
||||||
|
<para>It's a good idea to create an /etc/lfs file. By
|
||||||
having this file it is very easy for you (and for us if you are going to ask
|
having this file it is very easy for you (and for us if you are going to ask
|
||||||
for help with something at some point) to find out which LFS version
|
for help with something at some point) to find out which LFS version
|
||||||
you have installed on your system. Create the $LFS/etc/lfs file by
|
you have installed on your system. Create the /etc/lfs file by
|
||||||
running the following command:</para>
|
running the following command:</para>
|
||||||
|
|
||||||
<screen><userinput>echo &version; > $LFS/etc/lfs</userinput></screen>
|
<screen><userinput>echo &version; > /etc/lfs</userinput></screen>
|
||||||
|
|
||||||
</sect1>
|
</sect1>
|
||||||
|
|
||||||
|
@ -3,8 +3,9 @@
|
|||||||
"/usr/share/docbook/docbookx.dtd" [
|
"/usr/share/docbook/docbookx.dtd" [
|
||||||
|
|
||||||
|
|
||||||
<!ENTITY version "20031015">
|
<!ENTITY version "20031016">
|
||||||
<!ENTITY releasedate "October 15th, 2003">
|
<!ENTITY releasedate "October 16th, 2003">
|
||||||
|
<!ENTITY milestone "5.0">
|
||||||
<!ENTITY nbsp " ">
|
<!ENTITY nbsp " ">
|
||||||
|
|
||||||
<!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
|
<!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
|
||||||
@ -14,7 +15,7 @@
|
|||||||
<!ENTITY hints-root "http://www.linuxfromscratch.org/hints/downloads/files/">
|
<!ENTITY hints-root "http://www.linuxfromscratch.org/hints/downloads/files/">
|
||||||
<!ENTITY hints-index "http://www.linuxfromscratch.org/hints/list.html">
|
<!ENTITY hints-index "http://www.linuxfromscratch.org/hints/list.html">
|
||||||
<!ENTITY blfs-root "http://www.linuxfromscratch.org/blfs/">
|
<!ENTITY blfs-root "http://www.linuxfromscratch.org/blfs/">
|
||||||
<!ENTITY patches-root "http://www.linuxfromscratch.org/patches/lfs/5.0/">
|
<!ENTITY patches-root "http://www.linuxfromscratch.org/patches/lfs/&milestone;/">
|
||||||
<!ENTITY tldp-root "http://www.tldp.org/">
|
<!ENTITY tldp-root "http://www.tldp.org/">
|
||||||
|
|
||||||
<!ENTITY all-size-version "cvs-2003-10-06">
|
<!ENTITY all-size-version "cvs-2003-10-06">
|
||||||
|
Loading…
Reference in New Issue
Block a user