ソースを参照

made the mtab link command an 'ln -sf' since mount may create /etc/mtab when mounting proc

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2103 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Gerard Beekmans 23 年 前
コミット
57a5ecfef9
2 ファイル変更7 行追加1 行削除
  1. 6 0
      chapter01/changelog.xml
  2. 1 1
      chapter06/mtablink.xml

+ 6 - 0
chapter01/changelog.xml

@@ -56,6 +56,12 @@
 </itemizedlist>
 </para></listitem>
 
+<listitem><para>September 12th, 2002 [gerard]: Chapter 06 - Create mtab
+link: Made the <userinput>ln</userinput> command an <userinput>ln
+-sf</userinput> so the existing <filename>/etc/mtab</filename> file, created
+by the <userinput>mount</userinput> command, will be removed before
+re-creating it as a symlink.</para></listitem>
+
 <listitem><para>September 12th, 2002 [gerard]: Chapter 06 - Sh-utils: Added
 the sh-utils-hostname patch that supresses the build of the hostname
 program. This is done because the hostname program from the net-tools

+ 1 - 1
chapter06/mtablink.xml

@@ -6,7 +6,7 @@
 <filename>/etc/mtab</filename> to <filename>/proc/mounts</filename>.
 This is done using the following command:</para>
 
-<para><screen><userinput>ln -s /proc/mounts /etc/mtab</userinput></screen></para>
+<para><screen><userinput>ln -sf /proc/mounts /etc/mtab</userinput></screen></para>
 
 <para>Creating this symlink avoids problems which can occur if
 <filename class="directory">/</filename> is mounted read-only and the