WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Allow command-line editing in Lilo boot loader for I

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Allow command-line editing in Lilo boot loader for IA64 platform
From: Michal Novotny <minovotn@xxxxxxxxxx>
Date: Mon, 30 Mar 2009 14:48:21 +0200
Delivery-date: Mon, 30 Mar 2009 05:48:47 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird 2.0.0.21 (X11/20090320)
Hi folks,
this is pygrub patch to allow command-line editing in (e)Lilo boot loader used as a default boot loader for IA64. There was an error when creating domain using `xm create -c somePVguest` and pressing 'e' (for editing boot line) and then booting it using 'b' option. It returned an exception on IA64 platform because reset() function has one more parameter for Lilo bootloader used by IA64 than for GRUB bootloader used for other platforms.

Signed-off-by: Michal Novotny <minovotn@xxxxxxxxxx>

Best regards,
 Michal
diff -up xen-3.1.0-src/tools/pygrub/src/pygrub.bz249791 
xen-3.1.0-src/tools/pygrub/src/pygrub
--- xen-3.1.0-src/tools/pygrub/src/pygrub.bz249791      2009-02-23 
16:37:11.000000000 +0100
+++ xen-3.1.0-src/tools/pygrub/src/pygrub       2009-03-30 14:27:28.000000000 
+0200
@@ -314,7 +314,11 @@ class Grub:
                 curline = len(img.lines) - 1
 
         if self.isdone:
-            origimg.reset(img.lines)
+           # Fix to allow pygrub command-line editing in Lilo bootloader (used 
by IA64)
+           if platform.machine() == 'ia64':
+              origimg.reset(img.lines, img.path)
+           else:
+              origimg.reset(img.lines)
 
     def edit_line(self, line):
         self.screen.clear()
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Allow command-line editing in Lilo boot loader for IA64 platform, Michal Novotny <=