From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Novotny Subject: [PATCH] Allow command-line editing in Lilo boot loader for IA64 platform Date: Mon, 30 Mar 2009 14:48:21 +0200 Message-ID: <49D0BF95.3080802@redhat.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------070003080602070106030107" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --------------070003080602070106030107 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 Best regards, Michal --------------070003080602070106030107 Content-Type: text/plain; name="xen-pygrub-allow-command-line-editing-for-lilo-ia64.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename*0="xen-pygrub-allow-command-line-editing-for-lilo-ia64.patch" 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() --------------070003080602070106030107 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --------------070003080602070106030107--