mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-01-18 21:17:38 +00:00
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:
parent
0aecdecd62
commit
93dba6aba6
@ -6,6 +6,5 @@
|
||||
&c4-creatingpart;
|
||||
&c4-creatingfs;
|
||||
&c4-mounting;
|
||||
&c4-creatingdirs;
|
||||
|
||||
</chapter>
|
||||
|
@ -4,7 +4,8 @@
|
||||
|
||||
&c5-introduction;
|
||||
&c5-whystatic;
|
||||
&c5-installasroot;
|
||||
&c5-installasuser;
|
||||
&c5-creatingdirs;
|
||||
&c5-bash;
|
||||
&c5-binutils;
|
||||
&c5-bzip2;
|
||||
|
@ -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>
|
||||
|
||||
|
@ -14,8 +14,7 @@ command:</para>
|
||||
yes "" | make config &&
|
||||
make dep &&
|
||||
cp -HR include/asm $LFS/usr/include &&
|
||||
cp -HR include/linux $LFS/usr/include &&
|
||||
chown -R root.root $LFS/usr/include</userinput></screen></para>
|
||||
cp -HR include/linux $LFS/usr/include</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -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>
|
||||
|
||||
|
@ -19,7 +19,7 @@ make LDFLAGS=-static &&
|
||||
make install &&
|
||||
cd $LFS/usr/bin &&
|
||||
mv date echo false pwd stty $LFS/bin &&
|
||||
mv su true uname hostname $LFS/bin</userinput></screen></para>
|
||||
mv true uname hostname $LFS/bin</userinput></screen></para>
|
||||
|
||||
</sect2>
|
||||
|
||||
|
@ -6,6 +6,7 @@
|
||||
&c6-aboutdebug;
|
||||
&c6-bashprofile;
|
||||
&c6-chroot;
|
||||
&c6-changingowner;
|
||||
&c6-glibc;
|
||||
&c6-makedev;
|
||||
&c6-manpages;
|
||||
|
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user