Author: bdubbs
Date: Tue May 14 14:25:54 2013
New Revision: 10274

Log:
Change /etc/mtab to be a symbolic link to /proc/self/mounts.

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter06/createfiles.xml
   trunk/BOOK/general.ent

Modified: trunk/BOOK/chapter01/changelog.xml
==============================================================================
--- trunk/BOOK/chapter01/changelog.xml  Sun May 12 10:51:44 2013        (r10273)
+++ trunk/BOOK/chapter01/changelog.xml  Tue May 14 14:25:54 2013        (r10274)
@@ -36,6 +36,16 @@
     </listitem>
 -->
     <listitem>
+      <para>2013-05-14</para>
+      <itemizedlist>
+        <listitem>
+          <para>[bdubbs] - Change /etc/mtab to be a symbolic link
+          to /proc/self/mounts.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>2013-05-12</para>
       <itemizedlist>
         <listitem>

Modified: trunk/BOOK/chapter06/createfiles.xml
==============================================================================
--- trunk/BOOK/chapter06/createfiles.xml        Sun May 12 10:51:44 2013        
(r10273)
+++ trunk/BOOK/chapter06/createfiles.xml        Tue May 14 14:25:54 2013        
(r10274)
@@ -46,13 +46,14 @@
 sed 's/tools/usr/' /tools/lib/libstdc++.la > /usr/lib/libstdc++.la
 ln -sv bash /bin/sh</userinput></screen>
 
-  <para>A proper Linux system maintains a list of the mounted file systems in
-  the file <filename>/etc/mtab</filename>.  Normally, this file would be
-  created when we mount a new file system. Since we will not be mounting any
-  file systems inside our chroot environment, create an empty file for
-  utilities that expect the presence of <filename>/etc/mtab</filename>:</para>
+  <para>Historically, Linux maintains a list of the mounted file systems in the
+  file <filename>/etc/mtab</filename>.  Modern kernels maintain this list
+  internally and exposes it to the user via the <filename
+  class="directory">/proc</filename> filesystem.  To satisfy utilities that
+  expect the presence of <filename>/etc/mtab</filename>, create the following
+  symbolic link:</para>
 
-<screen><userinput>touch /etc/mtab</userinput></screen>
+<screen><userinput>ln -sv /proc/self/mounts /etc/mtab</userinput></screen>
 
   <para>In order for user <systemitem class="username">root</systemitem> to be
   able to login and for the name <quote>root</quote> to be recognized, there

Modified: trunk/BOOK/general.ent
==============================================================================
--- trunk/BOOK/general.ent      Sun May 12 10:51:44 2013        (r10273)
+++ trunk/BOOK/general.ent      Tue May 14 14:25:54 2013        (r10274)
@@ -1,5 +1,5 @@
-<!ENTITY version         "SVN-20130512">
-<!ENTITY releasedate     "May 12, 2013">
+<!ENTITY version         "SVN-20130514">
+<!ENTITY releasedate     "May 14, 2013">
 <!ENTITY copyrightdate   "1999-2013"><!-- jhalfs needs a literal dash, not 
&ndash; -->
 <!ENTITY milestone       "7.4">
 <!ENTITY generic-version "development"> <!-- Use "development", "testing", or 
"x.y[-pre{x}]" -->
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to