Browse Source

Fix the sed in the CD-ROM symlink section to handle newer Udev rules files


git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9473 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Bryan Kadzban 14 years ago
parent
commit
c5528f758a
2 changed files with 5 additions and 1 deletions
  1. 4 0
      chapter01/changelog.xml
  2. 1 1
      chapter07/symlinks.xml

+ 4 - 0
chapter01/changelog.xml

@@ -43,6 +43,10 @@
           <para>[bdubbs] Fix several urls in Chapter 3. Thanks to
           splotz90 for the patch.</para>
         </listitem>
+        <listitem>
+          <para>[bryan] Fix the sed in the CD-ROM symlinks section,
+          to sync with upstream changes to the file being modified.</para>
+        </listitem>
       </itemizedlist>
     </listitem>
 

+ 1 - 1
chapter07/symlinks.xml

@@ -76,7 +76,7 @@
     as follows (where <replaceable>mode</replaceable> is one of
     <quote>by-id</quote> or <quote>by-path</quote>):</para>
 
-<screen role="nodump"><userinput>sed -i -e 's/write_cd_rules/&amp; <replaceable>mode</replaceable>/' \
+<screen role="nodump"><userinput>sed -i -e 's/"write_cd_rules"/"write_cd_rules <replaceable>mode</replaceable>"/' \
     /lib/udev/rules.d/75-cd-aliases-generator.rules</userinput></screen>
 
     <para>Note that it is not necessary to create the rules files or symlinks