All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Novotny <minovotn@redhat.com>
To: xen-devel@lists.xensource.com
Subject: [PATCH] Allow command-line editing in Lilo boot loader for IA64 platform
Date: Mon, 30 Mar 2009 14:48:21 +0200	[thread overview]
Message-ID: <49D0BF95.3080802@redhat.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 533 bytes --]

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@redhat.com>

Best regards,
  Michal

[-- Attachment #2: xen-pygrub-allow-command-line-editing-for-lilo-ia64.patch --]
[-- Type: text/plain, Size: 708 bytes --]

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()

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.com
http://lists.xensource.com/xen-devel

                 reply	other threads:[~2009-03-30 12:48 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49D0BF95.3080802@redhat.com \
    --to=minovotn@redhat.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.