|
@@ -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
|