diff --git a/bootscripts/lfs/init.d/checkfs b/bootscripts/lfs/init.d/checkfs index 584921983..0903a0111 100644 --- a/bootscripts/lfs/init.d/checkfs +++ b/bootscripts/lfs/init.d/checkfs @@ -34,7 +34,7 @@ # Default-Start: S # Default-Stop: # Short-Description: Checks local filesystems before mounting. -# Description: Checks local filesystmes before mounting. +# Description: Checks local filesystems before mounting. # X-LFS-Provided-By: LFS ### END INIT INFO diff --git a/bootscripts/lfs/init.d/mountfs b/bootscripts/lfs/init.d/mountfs index ea413392e..cd9407dc0 100644 --- a/bootscripts/lfs/init.d/mountfs +++ b/bootscripts/lfs/init.d/mountfs @@ -55,7 +55,7 @@ case "${1}" in stop) # Don't unmount virtual file systems like /run log_info_msg "Unmounting all other currently mounted file systems..." - # Ensure any loop devies are removed + # Ensure any loop devices are removed losetup -D umount --all --detach-loop --read-only \ --types notmpfs,nosysfs,nodevtmpfs,noproc,nodevpts >/dev/null diff --git a/bootscripts/lfs/init.d/rc b/bootscripts/lfs/init.d/rc index 7dd503a07..dd855a71b 100644 --- a/bootscripts/lfs/init.d/rc +++ b/bootscripts/lfs/init.d/rc @@ -183,7 +183,7 @@ fi # Start all services marked as S in this runlevel, except if marked as # S in the previous runlevel -# it is the responsabily of the script to not try to start an already running +# it is the responsibility of the script to not try to start an already running # service for i in $( ls -v /etc/rc.d/rc${runlevel}.d/S* 2> /dev/null) do diff --git a/bootscripts/lfs/init.d/template b/bootscripts/lfs/init.d/template index 0a7872d98..4b3c4642a 100644 --- a/bootscripts/lfs/init.d/template +++ b/bootscripts/lfs/init.d/template @@ -45,7 +45,7 @@ case "${1}" in # if it is possible to use killproc killproc fully_qualified_path # if it is not possible to use killproc - # (the daemon shoudn't be stopped by killing it) + # (the daemon shouldn't be stopped by killing it) if pidofproc daemon_name_as_reported_by_ps >/dev/null; then command_to_stop_the_service fi diff --git a/bootscripts/lfs/lib/services/init-functions b/bootscripts/lfs/lib/services/init-functions index ece4d79aa..a86a23d86 100644 --- a/bootscripts/lfs/lib/services/init-functions +++ b/bootscripts/lfs/lib/services/init-functions @@ -155,7 +155,7 @@ start_daemon() fi # Return a value ONLY - # It is the init script's (or distribution's functions) responsibilty + # It is the init script's (or distribution's functions) responsibility # to log messages! case "${retval}" in @@ -271,7 +271,7 @@ killproc() fi # Return a value ONLY - # It is the init script's (or distribution's functions) responsibilty + # It is the init script's (or distribution's functions) responsibility # to log messages! case "${retval}" in diff --git a/bootscripts/lfs/sysconfig/createfiles b/bootscripts/lfs/sysconfig/createfiles index 378fa3ee7..bb744778f 100644 --- a/bootscripts/lfs/sysconfig/createfiles +++ b/bootscripts/lfs/sysconfig/createfiles @@ -21,7 +21,7 @@ # dev creates a new device # is either block, char or pipe # block creates a block device -# char creates a character deivce +# char creates a character device # pipe creates a pipe, this will ignore the and # fields # and are the major and minor numbers used for diff --git a/bootscripts/lfs/sysconfig/rc.site b/bootscripts/lfs/sysconfig/rc.site index 903aebff5..56b6f8d9b 100644 --- a/bootscripts/lfs/sysconfig/rc.site +++ b/bootscripts/lfs/sysconfig/rc.site @@ -32,7 +32,7 @@ #FAILURE_PREFIX="${FAILURE}*****${NORMAL} " #WARNING_PREFIX="${WARNING} *** ${NORMAL} " -# Manually seet the right edge of message output (characters) +# Manually set the right edge of message output (characters) # Useful when resetting console font during boot to override # automatic screen width detection #COLUMNS=120 diff --git a/chapter03/introduction.xml b/chapter03/introduction.xml index 1a69187a2..0e90508ae 100644 --- a/chapter03/introduction.xml +++ b/chapter03/introduction.xml @@ -104,4 +104,14 @@ popd This check can be used after retrieving the needed files with any of the methods listed above. + If the packages and patches are downloaded as a non-&root; user, + these files will be owned by the user. The file system records the + owner by its UID, and the UID of a normal user in the host distro is + not assigned in LFS. So the files will be left owned by an unnamed UID + in the final LFS system. If you won't assign the same UID for your user + in the LFS system, change the owners of these files to &root; now to + avoid this issue: + +chown root:root $LFS/sources/* + diff --git a/chapter08/pkgmgt.xml b/chapter08/pkgmgt.xml index 5d9477e80..60c472ad4 100644 --- a/chapter08/pkgmgt.xml +++ b/chapter08/pkgmgt.xml @@ -94,7 +94,7 @@ libfoo.so.1.24), you should remove the library file from the previously installed version (libfoo.so.1.25 in this case). - Otherwise, a ldconfig command (invokeed by yourself from the command + Otherwise, a ldconfig command (invoked by yourself from the command line, or by the installation of some package) will reset the symlink libfoo.so.1 to point to the old library file because it seems to be a newer @@ -107,7 +107,7 @@ (especially, a security vulnerability) is fixed, all running programs linked to the shared library should be restarted. The following command, run as root after - the update is cmplete, will list which processes are using the old versions of those libraries + the update is complete, will list which processes are using the old versions of those libraries (replace libfoo with the name of the library): diff --git a/chapter11/reboot.xml b/chapter11/reboot.xml index ebfb0a2b1..809d9bb70 100644 --- a/chapter11/reboot.xml +++ b/chapter11/reboot.xml @@ -107,6 +107,7 @@ Then unmount the virtual file systems: umount -v $LFS/dev/pts +mountpoint -q $LFS/dev/shm && umount $LFS/dev/shm umount -v $LFS/dev umount -v $LFS/run umount -v $LFS/proc diff --git a/part3intro/toolchaintechnotes.xml b/part3intro/toolchaintechnotes.xml index 16b6aafd2..c5b8dc577 100644 --- a/part3intro/toolchaintechnotes.xml +++ b/part3intro/toolchaintechnotes.xml @@ -151,7 +151,7 @@ referred to as the system triplet. Since the vendor field is mostly irrelevant, autoconf allows to omit it. An astute reader may wonder why a triplet refers to a four component name. The - reason is the kernel field and the os field originiated from one + reason is the kernel field and the os field originated from one system field. Such a three-field form is still valid today for some systems, for example x86_64-unknown-freebsd. But for other systems,