aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarc Heerdink <gimli@linuxfromscratch.org>2002-01-23 18:21:39 +0000
committerMarc Heerdink <gimli@linuxfromscratch.org>2002-01-23 18:21:39 +0000
commit93dba6aba6b5b53738a436ea6bbecfd8e4c9c46e (patch)
tree6907a2aba6bd97e351564da1b14047581825a766
parent0aecdecd6293ed9b2ab0c0b2efe1c008a59f0f93 (diff)
Implemented bug 149 (install chapter 5 as an unprivileged user)
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@1469 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r--chapter03/chapter03.xml1
-rw-r--r--chapter05/chapter05.xml3
-rw-r--r--chapter05/kernel-exp.xml4
-rw-r--r--chapter05/kernel-inst.xml3
-rw-r--r--chapter05/proc.xml18
-rw-r--r--chapter05/shellutils-inst.xml2
-rw-r--r--chapter06/chapter06.xml1
-rw-r--r--index.xml9
8 files changed, 21 insertions, 20 deletions
diff --git a/chapter03/chapter03.xml b/chapter03/chapter03.xml
index cccf5761f..eb2f2e7ec 100644
--- a/chapter03/chapter03.xml
+++ b/chapter03/chapter03.xml
@@ -6,6 +6,5 @@
&c4-creatingpart;
&c4-creatingfs;
&c4-mounting;
-&c4-creatingdirs;
</chapter>
diff --git a/chapter05/chapter05.xml b/chapter05/chapter05.xml
index aae848b3b..aa24547fb 100644
--- a/chapter05/chapter05.xml
+++ b/chapter05/chapter05.xml
@@ -4,7 +4,8 @@
&c5-introduction;
&c5-whystatic;
-&c5-installasroot;
+&c5-installasuser;
+&c5-creatingdirs;
&c5-bash;
&c5-binutils;
&c5-bzip2;
diff --git a/chapter05/kernel-exp.xml b/chapter05/kernel-exp.xml
index a5877e1b2..3cb6eca8b 100644
--- a/chapter05/kernel-exp.xml
+++ b/chapter05/kernel-exp.xml
@@ -25,9 +25,5 @@ and <userinput>cp -HR include/linux $LFS/usr/include</userinput>:
These commands copy the required kernel header files to
<filename>$LFS/usr/include</filename>.</para>
-<para><userinput>chown -R root.root $LFS/usr/include</userinput>:
-This ensures all header files under <filename>$LFS/usr/include</filename>
-are owned by user root and group root.</para>
-
</sect2>
diff --git a/chapter05/kernel-inst.xml b/chapter05/kernel-inst.xml
index 89fb578f0..fc4b0ab3b 100644
--- a/chapter05/kernel-inst.xml
+++ b/chapter05/kernel-inst.xml
@@ -14,8 +14,7 @@ command:</para>
yes "" | make config &amp;&amp;
make dep &amp;&amp;
cp -HR include/asm $LFS/usr/include &amp;&amp;
-cp -HR include/linux $LFS/usr/include &amp;&amp;
-chown -R root.root $LFS/usr/include</userinput></screen></para>
+cp -HR include/linux $LFS/usr/include</userinput></screen></para>
</sect2>
diff --git a/chapter05/proc.xml b/chapter05/proc.xml
index 7cb5adcee..a775d3f11 100644
--- a/chapter05/proc.xml
+++ b/chapter05/proc.xml
@@ -2,14 +2,18 @@
<title>Mounting $LFS/proc file system</title>
<?dbhtml filename="proc.html" dir="chapter05"?>
-<para>In order for certain programs to function properly, the proc file system
-must be mounted and available from within the chroot'ed environment as
-well. It's not a problem to mount the proc file system twice
-or even more than that, since it's a virtual file system maintained by
-the kernel itself.</para>
+<para>In order for certain programs to function properly, the proc file
+system must be mounted and available from within the chroot'ed environment
+as well. It's not a problem to mount the proc file system twice or even
+more than that, since it's a virtual file system maintained by the kernel
+itself.</para>
-<para>The proc file system is mounted under $LFS/proc by running the following
-command:</para>
+<para>If you're still logged in as user "lfs", you should log out and log
+in again as user root. The reason for this is simple: only root is allowed
+to mount filesystems and to run chroot.</para>
+
+<para>The proc file system is mounted under $LFS/proc by running the
+following command:</para>
<para><screen><userinput>mount proc $LFS/proc -t proc</userinput></screen></para>
diff --git a/chapter05/shellutils-inst.xml b/chapter05/shellutils-inst.xml
index 74f8def4f..03619e480 100644
--- a/chapter05/shellutils-inst.xml
+++ b/chapter05/shellutils-inst.xml
@@ -19,7 +19,7 @@ make LDFLAGS=-static &amp;&amp;
make install &amp;&amp;
cd $LFS/usr/bin &amp;&amp;
mv date echo false pwd stty $LFS/bin &amp;&amp;
-mv su true uname hostname $LFS/bin</userinput></screen></para>
+mv true uname hostname $LFS/bin</userinput></screen></para>
</sect2>
diff --git a/chapter06/chapter06.xml b/chapter06/chapter06.xml
index e39b89c86..ac8f2742d 100644
--- a/chapter06/chapter06.xml
+++ b/chapter06/chapter06.xml
@@ -6,6 +6,7 @@
&c6-aboutdebug;
&c6-bashprofile;
&c6-chroot;
+&c6-changingowner;
&c6-glibc;
&c6-makedev;
&c6-manpages;
diff --git a/index.xml b/index.xml
index 02eaa6f92..aca2c05f4 100644
--- a/index.xml
+++ b/index.xml
@@ -4,8 +4,8 @@
<!ENTITY book SYSTEM "book/book.xml">
-<!ENTITY version "20020122">
-<!ENTITY releasedate "January 22nd, 2002">
+<!ENTITY version "20020123">
+<!ENTITY releasedate "January 23nd, 2002">
<!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
<!ENTITY http-root "http://ftp.linuxfromscratch.org">
@@ -137,12 +137,12 @@
<!ENTITY c4-creatingpart SYSTEM "chapter4/creatingpart.xml">
<!ENTITY c4-creatingfs SYSTEM "chapter4/creatingfs.xml">
<!ENTITY c4-mounting SYSTEM "chapter4/mounting.xml">
-<!ENTITY c4-creatingdirs SYSTEM "chapter4/creatingdirs.xml">
<!ENTITY chapter5 SYSTEM "chapter5/chapter5.xml">
<!ENTITY c5-introduction SYSTEM "chapter5/introduction.xml">
<!ENTITY c5-whystatic SYSTEM "chapter5/whystatic.xml">
-<!ENTITY c5-installasroot SYSTEM "chapter5/installasroot.xml">
+<!ENTITY c5-installasuser SYSTEM "chapter5/installasuser.xml">
+<!ENTITY c5-creatingdirs SYSTEM "chapter5/creatingdirs.xml">
<!ENTITY c5-bash SYSTEM "chapter5/bash.xml">
<!ENTITY c5-bash-inst SYSTEM "chapter5/bash-inst.xml">
<!ENTITY c5-bash-exp SYSTEM "chapter5/bash-exp.xml">
@@ -196,6 +196,7 @@
<!ENTITY c6-bashprofile SYSTEM "chapter6/bashprofile.xml">
<!ENTITY c6-chrootcmd SYSTEM "chapter6/chrootcmd.xml">
<!ENTITY c6-chroot SYSTEM "chapter6/chroot.xml">
+<!ENTITY c6-changingowner SYSTEM "chapter6/changingowner.xml">
<!ENTITY c6-glibc SYSTEM "chapter6/glibc.xml">
<!ENTITY c6-glibc-inst SYSTEM "chapter6/glibc-inst.xml">
<!ENTITY c6-glibc-exp SYSTEM "chapter6/glibc-exp.xml">