Project

General

Profile

Actions

Bug #1496

closed

oi_151a text installer messes up grub menu.lst

Added by Alasdair Lumsden almost 10 years ago. Updated almost 10 years ago.

Status:
Resolved
Priority:
Normal
Category:
Caiman (Installer)
Target version:
-
Start date:
2011-09-11
Due date:
% Done:

100%

Estimated time:
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. ' + 
Actions #1

Updated by Alasdair Lumsden almost 10 years ago

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

Also available in: Atom PDF