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
This commit is contained in:
Marc Heerdink 2002-01-23 18:21:39 +00:00
parent 0aecdecd62
commit 93dba6aba6
8 changed files with 21 additions and 20 deletions

View File

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

View File

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

View File

@ -25,9 +25,5 @@ and <userinput>cp -HR include/linux $LFS/usr/include</userinput>:
These commands copy the required kernel header files to These commands copy the required kernel header files to
<filename>$LFS/usr/include</filename>.</para> <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> </sect2>

View File

@ -14,8 +14,7 @@ command:</para>
yes "" | make config &amp;&amp; yes "" | make config &amp;&amp;
make dep &amp;&amp; make dep &amp;&amp;
cp -HR include/asm $LFS/usr/include &amp;&amp; cp -HR include/asm $LFS/usr/include &amp;&amp;
cp -HR include/linux $LFS/usr/include &amp;&amp; cp -HR include/linux $LFS/usr/include</userinput></screen></para>
chown -R root.root $LFS/usr/include</userinput></screen></para>
</sect2> </sect2>

View File

@ -2,14 +2,18 @@
<title>Mounting $LFS/proc file system</title> <title>Mounting $LFS/proc file system</title>
<?dbhtml filename="proc.html" dir="chapter05"?> <?dbhtml filename="proc.html" dir="chapter05"?>
<para>In order for certain programs to function properly, the proc file system <para>In order for certain programs to function properly, the proc file
must be mounted and available from within the chroot'ed environment as system must be mounted and available from within the chroot'ed environment
well. It's not a problem to mount the proc file system twice as well. It's not a problem to mount the proc file system twice or even
or even more than that, since it's a virtual file system maintained by more than that, since it's a virtual file system maintained by the kernel
the kernel itself.</para> itself.</para>
<para>The proc file system is mounted under $LFS/proc by running the following <para>If you're still logged in as user "lfs", you should log out and log
command:</para> 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> <para><screen><userinput>mount proc $LFS/proc -t proc</userinput></screen></para>

View File

@ -19,7 +19,7 @@ make LDFLAGS=-static &amp;&amp;
make install &amp;&amp; make install &amp;&amp;
cd $LFS/usr/bin &amp;&amp; cd $LFS/usr/bin &amp;&amp;
mv date echo false pwd stty $LFS/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> </sect2>

View File

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

View File

@ -4,8 +4,8 @@
<!ENTITY book SYSTEM "book/book.xml"> <!ENTITY book SYSTEM "book/book.xml">
<!ENTITY version "20020122"> <!ENTITY version "20020123">
<!ENTITY releasedate "January 22nd, 2002"> <!ENTITY releasedate "January 23nd, 2002">
<!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org"> <!ENTITY ftp-root "ftp://ftp.linuxfromscratch.org">
<!ENTITY http-root "http://ftp.linuxfromscratch.org"> <!ENTITY http-root "http://ftp.linuxfromscratch.org">
@ -137,12 +137,12 @@
<!ENTITY c4-creatingpart SYSTEM "chapter4/creatingpart.xml"> <!ENTITY c4-creatingpart SYSTEM "chapter4/creatingpart.xml">
<!ENTITY c4-creatingfs SYSTEM "chapter4/creatingfs.xml"> <!ENTITY c4-creatingfs SYSTEM "chapter4/creatingfs.xml">
<!ENTITY c4-mounting SYSTEM "chapter4/mounting.xml"> <!ENTITY c4-mounting SYSTEM "chapter4/mounting.xml">
<!ENTITY c4-creatingdirs SYSTEM "chapter4/creatingdirs.xml">
<!ENTITY chapter5 SYSTEM "chapter5/chapter5.xml"> <!ENTITY chapter5 SYSTEM "chapter5/chapter5.xml">
<!ENTITY c5-introduction SYSTEM "chapter5/introduction.xml"> <!ENTITY c5-introduction SYSTEM "chapter5/introduction.xml">
<!ENTITY c5-whystatic SYSTEM "chapter5/whystatic.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 SYSTEM "chapter5/bash.xml">
<!ENTITY c5-bash-inst SYSTEM "chapter5/bash-inst.xml"> <!ENTITY c5-bash-inst SYSTEM "chapter5/bash-inst.xml">
<!ENTITY c5-bash-exp SYSTEM "chapter5/bash-exp.xml"> <!ENTITY c5-bash-exp SYSTEM "chapter5/bash-exp.xml">
@ -196,6 +196,7 @@
<!ENTITY c6-bashprofile SYSTEM "chapter6/bashprofile.xml"> <!ENTITY c6-bashprofile SYSTEM "chapter6/bashprofile.xml">
<!ENTITY c6-chrootcmd SYSTEM "chapter6/chrootcmd.xml"> <!ENTITY c6-chrootcmd SYSTEM "chapter6/chrootcmd.xml">
<!ENTITY c6-chroot SYSTEM "chapter6/chroot.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 SYSTEM "chapter6/glibc.xml">
<!ENTITY c6-glibc-inst SYSTEM "chapter6/glibc-inst.xml"> <!ENTITY c6-glibc-inst SYSTEM "chapter6/glibc-inst.xml">
<!ENTITY c6-glibc-exp SYSTEM "chapter6/glibc-exp.xml"> <!ENTITY c6-glibc-exp SYSTEM "chapter6/glibc-exp.xml">