mirror of
https://git.linuxfromscratch.org/lfs.git
synced 2025-03-13 02:49:52 +00:00
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
This commit is contained in:
parent
32ce725c9f
commit
85e7f3ce1d
@ -35,6 +35,16 @@
|
|||||||
</itemizedlist>
|
</itemizedlist>
|
||||||
</listitem>
|
</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>
|
<listitem>
|
||||||
<para>2013-05-12</para>
|
<para>2013-05-12</para>
|
||||||
<itemizedlist>
|
<itemizedlist>
|
||||||
|
@ -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
|
sed 's/tools/usr/' /tools/lib/libstdc++.la > /usr/lib/libstdc++.la
|
||||||
ln -sv bash /bin/sh</userinput></screen>
|
ln -sv bash /bin/sh</userinput></screen>
|
||||||
|
|
||||||
<para>A proper Linux system maintains a list of the mounted file systems in
|
<para>Historically, Linux maintains a list of the mounted file systems in the
|
||||||
the file <filename>/etc/mtab</filename>. Normally, this file would be
|
file <filename>/etc/mtab</filename>. Modern kernels maintain this list
|
||||||
created when we mount a new file system. Since we will not be mounting any
|
internally and exposes it to the user via the <filename
|
||||||
file systems inside our chroot environment, create an empty file for
|
class="directory">/proc</filename> filesystem. To satisfy utilities that
|
||||||
utilities that expect the presence of <filename>/etc/mtab</filename>:</para>
|
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
|
<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
|
able to login and for the name <quote>root</quote> to be recognized, there
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<!ENTITY version "SVN-20130512">
|
<!ENTITY version "SVN-20130514">
|
||||||
<!ENTITY releasedate "May 12, 2013">
|
<!ENTITY releasedate "May 14, 2013">
|
||||||
<!ENTITY copyrightdate "1999-2013"><!-- jhalfs needs a literal dash, not – -->
|
<!ENTITY copyrightdate "1999-2013"><!-- jhalfs needs a literal dash, not – -->
|
||||||
<!ENTITY milestone "7.4">
|
<!ENTITY milestone "7.4">
|
||||||
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
|
<!ENTITY generic-version "development"> <!-- Use "development", "testing", or "x.y[-pre{x}]" -->
|
||||||
|
Loading…
Reference in New Issue
Block a user