Bug #1496

oi_151a text installer messes up grub menu.lst

Added by Alasdair Lumsden over 2 years ago. Updated over 2 years ago.

Status:Resolved Start date:2011-09-11
Priority:Normal Due date:
Assignee:Alasdair Lumsden % Done:

100%

Category:Caiman (Installer)
Target version:-
Difficulty:Bite-size Tags:needs-triage

Description

As reported by TJ Yang <> on oi-dev mailing list.

Please see attached screenshot.

Andrzej Szeszo posted a diff to the mailing list showing how to fix it:

diff -r 733997758353 usr/src/lib/libict_pymod/ict.py
--- a/usr/src/lib/libict_pymod/ict.py   Thu Apr 28 11:46:57 2011 +0100
+++ b/usr/src/lib/libict_pymod/ict.py   Sun Sep 11 19:44:45 2011 +0000
@@ -1181,7 +1181,7 @@
         # Note there are TABs in the blow expression.
         # sedcmd = 'sed \'/\-B[ <TAB>]*\\$ZFS-BOOTFS/ i\\\nbootfs ' +\
         sedcmd = 'sed \'/\-B[  ]*\\$ZFS-BOOTFS/ i\\\nbootfs ' +\
-            rootdataset + '\' ' + self.grubmenu + ' > ' + newgrubmenu
+            rootdataset + '\\\n\' ' + self.grubmenu + ' > ' + newgrubmenu
         status = _cmd_status(sedcmd)
         if status != 0:
             prerror('Adding bootfs command to grub menu fails. ' + 

History

Updated by Alasdair Lumsden over 2 years ago

  • Status changed from New to Resolved
  • % Done changed from 50 to 100

Also available in: Atom PDF