diff options
author | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2013-05-14 21:25:54 +0000 |
---|---|---|
committer | Bruce Dubbs <bdubbs@linuxfromscratch.org> | 2013-05-14 21:25:54 +0000 |
commit | 85e7f3ce1d59872b3ea26b3f4332b934fc1af2af (patch) | |
tree | 7794c40af59bc65d6e0bdd4f9a534557473d6d46 | |
parent | 32ce725c9f9b4104cf6d69b603575fcfb06b4965 (diff) |
Change /etc/mtab to be a symbolic link to /proc/self/mounts.
git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@10274 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
-rw-r--r-- | chapter01/changelog.xml | 10 | ||||
-rw-r--r-- | chapter06/createfiles.xml | 15 | ||||
-rw-r--r-- | general.ent | 4 |
3 files changed, 20 insertions, 9 deletions
diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index beac24c58..0aa6eb44a 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -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> diff --git a/chapter06/createfiles.xml b/chapter06/createfiles.xml index 7f32e89b6..5139dce0f 100644 --- a/chapter06/createfiles.xml +++ b/chapter06/createfiles.xml @@ -46,13 +46,14 @@ ln -sv /tools/lib/libstdc++.so{,.6} /usr/lib 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> - -<screen><userinput>touch /etc/mtab</userinput></screen> + <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>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 diff --git a/general.ent b/general.ent index 055c9816f..3fb2ea84f 100644 --- a/general.ent +++ b/general.ent @@ -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 – --> <!ENTITY milestone "7.4"> <!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" --> |