From db9d773c6e39372c09613573d66473172d4f353f Mon Sep 17 00:00:00 2001 From: Alex Gronenwoud Date: Sat, 28 Feb 2004 11:26:41 +0000 Subject: Forgetfulness makes the most traffic... git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@3271 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 5 +++-- chapter06/chapter06.xml | 11 +++++++---- chapter06/ncurses.xml | 5 ++--- chapter06/vim.xml | 6 +++--- chapter06/zlib.xml | 17 +++++++---------- chapter07/loadkeys.xml | 21 ++++++++++----------- chapter09/reboot.xml | 4 ++-- 7 files changed, 34 insertions(+), 35 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 7535f7883..151df4713 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -45,9 +45,10 @@ fixes a possible symlink attack in iana-get Chapter 6 findutils to be FHS-Compliant February 26th, 2004 [jeremy]: Removed the creation of the -/usr/etc directory to conform with FHS - closes bug 775 +/usr/etc directory to conform with FHS - closes bug 775. -February 26th, 2004 [jeremy]: Upgraded to Kernel 2.4.25 +February 26th, 2004 [jeremy]: Upgraded to +Kernel 2.4.25 February 23rd, 2004 [alex]: Chapters 6 + 9 : Cleaned up the Revision of chroot and Reboot sections. diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml index 0df77c71e..6bb1b5bf4 100644 --- a/chapter06/chapter06.xml +++ b/chapter06/chapter06.xml @@ -573,10 +573,13 @@ the current situation. If you are going to perform the stripping, special care is needed to ensure you're not running any of the binaries that are about to be stripped. If you're not sure whether you entered chroot with the command given in -, then now exit from chroot and reenter it -with the following commands: +, then first exit from chroot: -logout; chroot $LFS /tools/bin/env -i \ +logout + +Then reenter it with: + +chroot $LFS /tools/bin/env -i \     HOME=/root TERM=$TERM PS1='\u:\w\$ ' \     PATH=/bin:/usr/bin:/sbin:/usr/sbin \     /tools/bin/bash --login @@ -616,7 +619,7 @@ class="directory">/tools are no longer needed, you may want to delete the whole directory and regain the space. Before actually deleting the directory, exit from chroot and reenter it with the above command. Also, before removing /tools, you may want to tar it -up and store it in a safe place, in case you want build another LFS system +up and store it in a safe place, in case you want to build another LFS system soon. Removing /tools will also diff --git a/chapter06/ncurses.xml b/chapter06/ncurses.xml index 82a9c23ba..700d81b9e 100644 --- a/chapter06/ncurses.xml +++ b/chapter06/ncurses.xml @@ -41,9 +41,8 @@ where they're expected to reside: mv /usr/lib/libncurses.so.5* /lib -Since the libraries have been moved to -/lib, a few symlinks are currently pointing -towards non-existing files. Recreate those symlinks: +Now the libraries have been moved, a few symlinks are pointing to +non-existent files. Recreate those symlinks: ln -sf ../../lib/libncurses.so.5 /usr/lib/libncurses.so ln -sf libncurses.so /usr/lib/libcurses.so diff --git a/chapter06/vim.xml b/chapter06/vim.xml index fd23e5ef3..272b1f4cf 100644 --- a/chapter06/vim.xml +++ b/chapter06/vim.xml @@ -25,7 +25,7 @@ suggested installation instructions. Installation of Vim First change the default locations of the vimrc and -gvimrc files to gvimrc configuration files to /etc. echo '#define SYS_VIMRC_FILE "/etc/vimrc"' >> src/feature.h @@ -42,8 +42,8 @@ echo '#define SYS_GVIMRC_FILE "/etc/gvimrc"' >> src/feature.h< To have the results tested, you can issue: make check. However, this test suite outputs a lot of seemingly garbage characters to the screen, and this can wreak havoc with the -settings of the current terminal. Accordingly, the running of the test suite -here is strictly optional. +settings of the current terminal. Therefore the running of the test suite here +is strictly optional. And install the package: diff --git a/chapter06/zlib.xml b/chapter06/zlib.xml index 23a4efb9e..798f3cb1f 100644 --- a/chapter06/zlib.xml +++ b/chapter06/zlib.xml @@ -33,8 +33,6 @@ afterwards. To have the results tested, issue: make check. -make check - Install the shared library: make install @@ -44,7 +42,7 @@ afterwards. ./configure --prefix=/usr make -To have the results tested, issue: +To have the results tested again, issue: make check. Install the static library: @@ -58,21 +56,20 @@ make It is good policy and common practice to place important libraries into the /lib directory. This matters most in scenarios where /usr is on a -separate partition. Essentially, the run-time components of any libraries -depended upon by programs in /bin or +separate partition. Essentially, the run-time components of any libraries that +are used by programs in /bin or /sbin should reside in /lib so that they are on the root partition and available in the event of /usr being inaccessible. -Therefore we move the run-time components of the shared Zlib into -/lib by issuing the following -command: +For the above reason we move the run-time components of the shared Zlib +into /lib: mv /usr/lib/libz.so.* /lib -Now we need to fix up the /usr/lib/libz.so symlink -because we just moved the location of the file it points to: +Now we need to fix the /usr/lib/libz.so symlink +because we just moved the file it points to: ln -sf ../../lib/libz.so.1 /usr/lib/libz.so diff --git a/chapter07/loadkeys.xml b/chapter07/loadkeys.xml index 770c307d7..3628993e9 100644 --- a/chapter07/loadkeys.xml +++ b/chapter07/loadkeys.xml @@ -2,18 +2,17 @@ Do I need the loadkeys script? -If you decided to compile your keymap file directly into the kernel back -at the end of , then you strictly speaking don't -need to run this loadkeys script, since the kernel has already set up the -keymap for you. You can still run it if you want, it isn't going to hurt you. -It could even be beneficial to keep it in case you run a lot of different -kernels and don't remember or want to compile the keymap into every kernel you -lay your hands on. +If back in you decided to go +compile your keymap directly into the kernel (later on in ), then strictly speaking you don't need to run this +loadkeys script, since the kernel will set up the keymap for you. If you wish, +you can still run the script, it isn't going to hurt you. Keeping it could even +be beneficial, in case you run a lot of different kernels and can't be sure +that the keymap is compiled into every one of them. -If you decided you don't need to, or don't want to use the loadkeys -script, remove the -/etc/rc.d/rcsysinit.d/S70loadkeys -symlink. +If you decided you don't need or don't want to use the loadkeys script, +remove the /etc/rc.d/rcsysinit.d/S70loadkeys symlink. diff --git a/chapter09/reboot.xml b/chapter09/reboot.xml index 56dc83ec6..99bca049e 100644 --- a/chapter09/reboot.xml +++ b/chapter09/reboot.xml @@ -9,8 +9,8 @@ your computer. First exit from the chroot environment: Then unmount the virtual files systems: -umount /dev/pts -umount /proc +umount $LFS/dev/pts +umount $LFS/proc And unmount the LFS file system: -- cgit v1.2.3-54-g00ecf