Skip to contentSkip to conversation

Allow command-line editing in Lilo boot loader for IA64 platform

PATCH New Michal Novotny 1 participant 1 message Mar 30, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Allow command-line editing in Lilo boot loader for IA64 platform

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.

Best regards,
Michal

tools/pygrub/src/pygrub renamed from tools/pygrub/src/pygrub.bz249791 +5 -1
diff -up xen-3.1.0-src/tools/pygrub/src/pygrub.bz249791 xen-3.1.0-src/tools/pygrub/src/pygrub
@@ -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
[email protected]
http://lists.xensource.com/xen-devel