Просмотр исходного кода

Added sed to correct path to the find program in updatedb

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@7674 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Bruce Dubbs 19 лет назад
Родитель
Сommit
491d4629be
2 измененных файлов с 8 добавлено и 2 удалено
  1. 4 0
      chapter01/changelog.xml
  2. 4 2
      chapter06/findutils.xml

+ 4 - 0
chapter01/changelog.xml

@@ -38,6 +38,10 @@
     <listitem>
       <para>July 15, 2006</para>
       <itemizedlist>
+        <listitem>
+          <para>[bdubbs] - Added sed to correct path to the find
+          program in updatedb after moving find to /bin.</para>
+        </listitem>
         <listitem>
           <para>[bdubbs] - Updated text concerning test failures in 
           glibc to describe the most recent results.</para>

+ 4 - 2
chapter06/findutils.xml

@@ -70,9 +70,11 @@
     <para>Some of the scripts in the LFS-Bootscripts package depend on
     <command>find</command>.  As <filename class="directory">/usr</filename>
     may not be available during the early stages of booting, this program
-    needs to be on the root partition:</para>
+    needs to be on the root partition.  The <command>updatedb</command>
+    script also needs to correct an explicit path.</para> 
 
-<screen><userinput>mv -v /usr/bin/find /bin</userinput></screen>
+<screen><userinput>mv -v /usr/bin/find /bin</userinput>
+sed -i -e 's/find:=${BINDIR}/find:=\/bin/' /usr/bin/updatedb</screen>
                     
   </sect2>