All of lore.kernel.org
 help / color / mirror / Atom feed
From: aq <aquynh@gmail.com>
To: Jeremy Katz <katzj@redhat.com>
Cc: xen-devel <xen-devel@lists.xensource.com>
Subject: Re: [PATCH] Guest boot loader support
Date: Tue, 26 Apr 2005 18:54:31 +0900	[thread overview]
Message-ID: <9cde8bff0504260254266a7027@mail.gmail.com> (raw)
In-Reply-To: <9cde8bff050426023247aa475b@mail.gmail.com>

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

On 4/26/05, aq <aquynh@gmail.com> wrote:
> On 4/26/05, Jeremy Katz <katzj@redhat.com> wrote:
> > Attached is an updated version of the patch to add boot loader support
> > for guest domains.
> >
> > Changes from the initial set of patches:
> > * Per Ian's request, adds an option to specify booting a specific kernel
> > from the host domain (you can specify it either with the title of the
> > boot loader config entry or with the grub 0-based index)
> > * Reduces some of the code duplication for finding out what the virtual
> > disk to boot off of is
> > * Improved error handling to use the standard Xen logging and error
> > facilities
> >

Jeremy, I looked at your code, and find few lines like this:

   exec("%s = r\"%s\"" %(self.commands[com], arg.strip()))

Looks like you dont need the above "r". Then the code should be:

   exec("%s = \"%s\"" %(self.commands[com], arg.strip()))

Here is a small patch (against your patch) to remove those typos.

$ diffstat booloader1.patch
 xen-bootloader2.patch |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>

[-- Attachment #2: booloader1.patch --]
[-- Type: application/octet-stream, Size: 1001 bytes --]

--- xen-bootloader.patch	2005-04-26 18:47:36.437028000 +0900
+++ xen-bootloader2.patch	2005-04-26 18:49:01.687028000 +0900
@@ -147,7 +147,7 @@ diff -Nru a/tools/pygrub/src/GrubConf.py
 +
 +            if self.commands.has_key(com):
 +                if self.commands[com] is not None:
-+                    exec("%s = r\"%s\"" %(self.commands[com], arg.strip()))
++                    exec("%s = \"%s\"" %(self.commands[com], arg.strip()))
 +                else:
 +                    logging.info("Ignored image directive %s" %(com,))
 +            else:
@@ -246,7 +246,7 @@ diff -Nru a/tools/pygrub/src/GrubConf.py
 +
 +            if self.commands.has_key(com):
 +                if self.commands[com] is not None:
-+                    exec("%s = r\"%s\"" %(self.commands[com], arg.strip()))
++                    exec("%s = \"%s\"" %(self.commands[com], arg.strip()))
 +                else:
 +                    logging.info("Ignored directive %s" %(com,))
 +            else:

[-- 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:[~2005-04-26  9:54 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-25 22:50 [PATCH] Guest boot loader support Jeremy Katz
2005-04-26  9:32 ` aq
2005-04-26  9:54   ` aq [this message]
2005-04-26 17:01   ` Jeremy Katz
2005-04-26 19:37     ` aq
2005-04-26 19:48       ` Mark Williamson
2005-04-26 20:24         ` Hollis Blanchard
2005-04-26 20:47           ` Mark Williamson
2005-04-26 21:02             ` aq
2005-04-27  0:30               ` Mark Williamson
2005-04-27  3:14                 ` aq
2005-04-29  3:06             ` Jeremy Katz
2005-04-26 20:49           ` aq
2005-04-26 19:58     ` aq
2005-04-26 20:11 ` Jacob Gorm Hansen
2005-04-26 20:21   ` Anthony Liguori
2005-04-26 20:39     ` Jacob Gorm Hansen

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=9cde8bff0504260254266a7027@mail.gmail.com \
    --to=aquynh@gmail.com \
    --cc=katzj@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.