2001-01-24 00:31:17 +00:00
|
|
|
<sect1 id="ch05-proc">
|
|
|
|
<title>Mounting $LFS/proc file system</title>
|
2001-09-26 00:55:44 +01:00
|
|
|
<?dbhtml filename="proc.html" dir="chapter05"?>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-01-23 18:21:39 +00:00
|
|
|
<para>In order for certain programs to function properly, the proc file
|
|
|
|
system must be mounted and available from within the chroot'ed environment
|
2002-01-30 16:30:28 +00:00
|
|
|
as well. It's not a problem to mount the proc file system (or any other
|
2002-02-07 13:39:02 +00:00
|
|
|
file system for that matter) twice or even more than that.</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-01-23 18:21:39 +00:00
|
|
|
<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
|
2002-04-04 00:46:22 +01:00
|
|
|
following command. We'll also chown it to user root/group root while we're
|
|
|
|
at it (the rest of the filesystem is chown'ed to root.root in a minute when
|
|
|
|
we start with chapter 6).</para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
2002-04-04 00:46:22 +01:00
|
|
|
<para><screen><userinput>chown root.root $LFS/proc &&
|
|
|
|
mount proc $LFS/proc -t proc</userinput></screen></para>
|
2001-01-24 00:31:17 +00:00
|
|
|
|
|
|
|
</sect1>
|
|
|
|
|