From 5ba705410bea94bf86a2b2ccbf0ec1764ba32bcc Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Mon, 27 Aug 2001 22:17:43 +0000 Subject: [PATCH] Added reboot in chap9 git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1070 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter09/chapter09.xml | 1 + chapter09/reboot.xml | 50 +++++++++++++++++++++++++++++++++++++++++ chapter09/theend.xml | 11 ++++++--- 3 files changed, 59 insertions(+), 3 deletions(-) create mode 100644 chapter09/reboot.xml diff --git a/chapter09/chapter09.xml b/chapter09/chapter09.xml index dd2048bc8..ac84eec1d 100644 --- a/chapter09/chapter09.xml +++ b/chapter09/chapter09.xml @@ -2,6 +2,7 @@ The End &c9-theend; +&c9-reboot; diff --git a/chapter09/reboot.xml b/chapter09/reboot.xml new file mode 100644 index 000000000..39669eeb3 --- /dev/null +++ b/chapter09/reboot.xml @@ -0,0 +1,50 @@ + +Rebooting the system + +Now that all software has been installed, bootscripts have been created, +it's time to reboot the computer. Before we reboot let's exit the +chroot'ed environment first and unmount the LFS partition by running: + +umount $LFS/proc && +umount $LFS + +And you can reboot your system by running something like: + +/sbin/shutdown -r now + +At the LILO: prompt make sure that you tell it to boot +lfs and not the default entry which will boot your +host system again. + +After you have rebooted, your LFS system is ready for use and you +can start adding your own software. + +One final thing you may want to do is run lilo, now that you are +booted into LFS. This way you will put the LFS version of LILO in the MBR +rather than the one that's there right now from your host system. +Depending on how old your host distribution is, the LFS version may have +more advanced features you need/could use. + +Either way, run the following to make the lilo version installed +on LFS active: + +/sbin/lilo + +If you are wondering: "Well, where to go now?" you'll be glad to +hear that someone has written an LFS hint on the subject at &hint-root;afterlfs.txt. +On a same note, if you are not only newbie to LFS, but also +newbie to Linux in general, you may find the newbie hint at &hint-root;newbie.txt + very interesting. + +Don't forget there are several LFS mailinglists you can subscribe +to if you are in need of help, advice, etc. See +Chapter 1 - Mailinglists for +more information. + +Again, we thank you for using the LFS Book and hope you found this +book useful and worth your time. + + + diff --git a/chapter09/theend.xml b/chapter09/theend.xml index 586cb34a9..db4b5c14c 100644 --- a/chapter09/theend.xml +++ b/chapter09/theend.xml @@ -29,16 +29,21 @@ 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. -find / -type f -exec strip --strip-debug '{}' ';' +find $LFS/{,usr,usr/local}/{bin,sbin,lib} -type +f \ +   -exec /usr/bin/strip --strip-debug '{}' +';' If you plan to ever upgrade to a newer LFS version in the future it -will be a good idea to create the /etc/lfs-&version; file. By having +will be a good idea to create the $LFS/etc/lfs-&version; 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. This can just be a null-byte file by running: -touch /etc/lfs-&version; +touch $LFS/etc/lfs-&version; + +Let's reboot into LFS now... One final thing you may want to do is run lilo now that you are booted into LFS. This way you will put the LFS version of LILO in the MBR