aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pygrub
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-03-31 13:21:36 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-03-31 13:21:36 +0100
commit3f64466b4bfbc47a9cb97416d7ed883606a329d2 (patch)
tree346510a98c2cfa6913354d41df86b5cb338d89b1 /tools/pygrub
parentf94d6532fc05a80cf368b8470c90e4ea5b1070ff (diff)
downloadxen-3f64466b4bfbc47a9cb97416d7ed883606a329d2.tar.gz
xen-3f64466b4bfbc47a9cb97416d7ed883606a329d2.tar.bz2
xen-3f64466b4bfbc47a9cb97416d7ed883606a329d2.zip
ia64, pygrub: Allow command-line editing in Lilo boot loader
On IA64 platform 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@redhat.com>
Diffstat (limited to 'tools/pygrub')
-rw-r--r--tools/pygrub/src/pygrub6
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/pygrub/src/pygrub b/tools/pygrub/src/pygrub
index 561bc7efe9..e43dcc2d9a 100644
--- a/tools/pygrub/src/pygrub
+++ b/tools/pygrub/src/pygrub
@@ -316,7 +316,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.erase()