From 9922b2698cdc90aeab540a995d4e698d63121c4d Mon Sep 17 00:00:00 2001 From: Gerard Beekmans Date: Thu, 6 Feb 2003 00:01:40 +0000 Subject: [PATCH] tag + typo fixes git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2432 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter06/kernel-inst.xml | 20 +++++++++++--------- chapter06/makedev-inst.xml | 5 +++-- chapter06/pwdgroup.xml | 10 +++++----- 3 files changed, 19 insertions(+), 16 deletions(-) diff --git a/chapter06/kernel-inst.xml b/chapter06/kernel-inst.xml index 55f1482e5..2b02a202b 100644 --- a/chapter06/kernel-inst.xml +++ b/chapter06/kernel-inst.xml @@ -9,21 +9,23 @@ kernel header files, we're going to unpack the kernel archive now, set it up and copy the header files so they can be found by these packages. It is important to note that the files in the kernel source directory -are not owned by root. Whenever you unpack a package as user root (like we -do here inside chroot), the files end up having the user and group ID's of -whatever they were on the packager's computer. This is usually not a +are not owned by root. Whenever you unpack a package as +user root (like we do here inside chroot), the files end +up having the user and group IDs of whatever they were on the packager's +computer. This is usually not a problem for any other package you install because you remove the source tree after the installation. But the Linux kernel source tree is often kept -around for a long time, so there's a chance that whatever userid was used will -be assigned to somebody on your machine and that person would have write -access to the kernel source. +around for a long time, so there's a chance that whatever user ID the packager +used will be assigned to somebody on your machine and then that person would +have write access to the kernel source. In light of this, you might want to run chown -R 0:0 on the linux-&kernel-version; directory to ensure all files are owned by user root. -Kernel header installation requires the pwd program. -In the kernel source, the path to the pwd program is hard-wired as /bin/pwd. +Kernel header installation requires the pwd program. +In the kernel source the path to the pwd program is +hard-wired as /bin/pwd. Create a symlink to account for that: ln -s /static/bin/pwd /bin/pwd @@ -58,7 +60,7 @@ cp -R include/asm-generic /usr/include There are a few kernel header files which make use of the autoconf.h header file. Since we do not yet configure the kernel, we need to create this file ourselves in order to avoid compilation -failures. Create an empty autoconf.h file: +failures. Create an empty autoconf.h file: touch /usr/include/linux/autoconf.h diff --git a/chapter06/makedev-inst.xml b/chapter06/makedev-inst.xml index b86622643..169c7e144 100644 --- a/chapter06/makedev-inst.xml +++ b/chapter06/makedev-inst.xml @@ -26,10 +26,11 @@ create devices via the mknod program. Please refer to the man and info pages of mknod if you need more information. -If you intend to use devpts, pass the +If you intend to use devpts, pass the generic-nopty option to MAKEDEV. This creates the same devices as generic, but it skips -the creation of pty devices so that devpts can manage them itself. +the creation of pty devices so that +devpts can manage those. diff --git a/chapter06/pwdgroup.xml b/chapter06/pwdgroup.xml index 87dabb10c..caa57280f 100644 --- a/chapter06/pwdgroup.xml +++ b/chapter06/pwdgroup.xml @@ -2,8 +2,8 @@ Creating the passwd and group files -In order for root to be able to login and for the name "root" to be -recognized, there need to be relevant entries in the +In order for root to be able to login and for the +name "root" to be recognized, there need to be relevant entries in the /etc/passwd and /etc/group files. @@ -12,8 +12,8 @@ following command: echo "root:x:0:0:root:/root:/bin/bash" > /etc/passwd -The actual password for root (the "x" here is just a placeholder) will -be set later. +The actual password for root (the "x" here is +just a placeholder) will be set later. Create the /etc/group file by running the following command: @@ -35,7 +35,7 @@ audio:x:11: The created groups aren't part of any standard -- they are the groups that the MAKEDEV script in the next section uses. Besides the group "root", -the LSB () (recommends only a group +the LSB () recommends only a group "bin", with a GID of 1, be present. All other group names and GIDs can be chosen freely by the user, as well-written packages don't depend on GID numbers but use the group's name.