Jelajahi Sumber

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
Marc Heerdink 23 tahun lalu
induk
melakukan
93dba6aba6

+ 0 - 1
chapter03/chapter03.xml

@@ -6,6 +6,5 @@
 &c4-creatingpart;
 &c4-creatingfs;
 &c4-mounting;
-&c4-creatingdirs;
 
 </chapter>

+ 2 - 1
chapter05/chapter05.xml

@@ -4,7 +4,8 @@
 
 &c5-introduction;
 &c5-whystatic;
-&c5-installasroot;
+&c5-installasuser;
+&c5-creatingdirs;
 &c5-bash;
 &c5-binutils;
 &c5-bzip2;

+ 0 - 4
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>
 

+ 1 - 2
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>
 

+ 11 - 7
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>
 

+ 1 - 1
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>
 

+ 1 - 0
chapter06/chapter06.xml

@@ -6,6 +6,7 @@
 &c6-aboutdebug;
 &c6-bashprofile;
 &c6-chroot;
+&c6-changingowner;
 &c6-glibc;
 &c6-makedev;
 &c6-manpages;

+ 5 - 4
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">