diff options
Diffstat (limited to 'chapter09')
-rw-r--r-- | chapter09/reboot.xml | 19 | ||||
-rw-r--r-- | chapter09/theend.xml | 27 |
2 files changed, 38 insertions, 8 deletions
diff --git a/chapter09/reboot.xml b/chapter09/reboot.xml index 4b46dd6d6..9c8fcbf8e 100644 --- a/chapter09/reboot.xml +++ b/chapter09/reboot.xml @@ -12,6 +12,19 @@ umount /dev/pts</userinput></screen> <para>Exit the chroot environment:</para> <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> <screen><userinput>umount $LFS</userinput></screen> @@ -27,9 +40,9 @@ umount $LFS</userinput></screen> <screen><userinput>/sbin/shutdown -r now</userinput></screen> -<para>At the Grub menu make sure that you tell it to boot -<emphasis>lfs</emphasis> and not the default entry which will boot your -host system again.</para> +<para>Assuming the Grub boot loader was set up as outlined earlier, the +default menu should be set to boot <emphasis>LFS &milestone;</emphasis> +automatically.</para> <para>After you have rebooted, your LFS system is ready for use and you can start adding your own software.</para> diff --git a/chapter09/theend.xml b/chapter09/theend.xml index 61e8cfcbb..14c7406e2 100644 --- a/chapter09/theend.xml +++ b/chapter09/theend.xml @@ -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 on the safe side.</para> -<screen><userinput>find $LFS/{,usr/,usr/local/}{bin,sbin,lib} -type f \ - -exec /usr/bin/strip --strip-debug '{}' ';'</userinput></screen> +<para>If you are planning to go ahead and perform the strip, special care is +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 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> -<screen><userinput>echo &version; > $LFS/etc/lfs</userinput></screen> +<screen><userinput>echo &version; > /etc/lfs</userinput></screen> </sect1> |