ia64/xen-unstable
changeset 19472:4b602fff137b
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>
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>
author | Keir Fraser <keir.fraser@citrix.com> |
---|---|
date | Tue Mar 31 13:21:36 2009 +0100 (2009-03-31) |
parents | b2b0825d6f8e |
children | 2fa1d38097da |
files | tools/pygrub/src/pygrub |
line diff
1.1 --- a/tools/pygrub/src/pygrub Tue Mar 31 13:20:04 2009 +0100 1.2 +++ b/tools/pygrub/src/pygrub Tue Mar 31 13:21:36 2009 +0100 1.3 @@ -316,7 +316,11 @@ class Grub: 1.4 curline = len(img.lines) - 1 1.5 1.6 if self.isdone: 1.7 - origimg.reset(img.lines) 1.8 + # Fix to allow pygrub command-line editing in Lilo bootloader (used by IA64) 1.9 + if platform.machine() == 'ia64': 1.10 + origimg.reset(img.lines, img.path) 1.11 + else: 1.12 + origimg.reset(img.lines) 1.13 1.14 def edit_line(self, line): 1.15 self.screen.erase()