xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* Patch to fix pygrub with grub2 when /boot is a separate partition
@ 2010-03-05  8:20 David Markey
  2010-03-05  8:49 ` Ian Campbell
  0 siblings, 1 reply; 3+ messages in thread
From: David Markey @ 2010-03-05  8:20 UTC (permalink / raw)
  To: Xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 659 bytes --]

Pygrub doesn't detect the grub2 config file when it's on a separate /boot
partition. This should fix it.


--- /a/usr/bin/pygrub   2010-03-04 12:32:36.000000000 +0000
+++ /b/usr/bin/pygrub   2010-03-05 08:16:57.000000000 +0000
@@ -383,7 +383,7 @@
                            ["/boot/grub/menu.lst", "/boot/grub/grub.conf",
                             "/grub/menu.lst", "/grub/grub.conf"]) + \
                        map(lambda x: (x,grub.GrubConf.Grub2ConfigFile),
-                           ["/boot/grub/grub.cfg"])
+                           ["/boot/grub/grub.cfg","/grub/grub.cfg"])

         if not fs:
             # set the config file and parse it

[-- Attachment #1.2: Type: text/html, Size: 912 bytes --]

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Patch to fix pygrub with grub2 when /boot is a separate partition
  2010-03-05  8:20 Patch to fix pygrub with grub2 when /boot is a separate partition David Markey
@ 2010-03-05  8:49 ` Ian Campbell
  2010-03-05  9:28   ` David Markey
  0 siblings, 1 reply; 3+ messages in thread
From: Ian Campbell @ 2010-03-05  8:49 UTC (permalink / raw)
  To: admin@dmarkey.com; +Cc: Xen-devel

On Fri, 2010-03-05 at 08:20 +0000, David Markey wrote: 
> Pygrub doesn't detect the grub2 config file when it's on a
> separate /boot partition. This should fix it.

Thanks. You should include a Signed-off-by line.

Acked-by: Ian Campbell <ian.campbell@citrix.com>

Ian.

> 
> 
> 
> 
> --- /a/usr/bin/pygrub   2010-03-04 12:32:36.000000000 +0000
> +++ /b/usr/bin/pygrub   2010-03-05 08:16:57.000000000 +0000
> @@ -383,7 +383,7 @@
>                             ["/boot/grub/menu.lst",
> "/boot/grub/grub.conf",
>                              "/grub/menu.lst", "/grub/grub.conf"]) + \
>                         map(lambda x:
> (x,grub.GrubConf.Grub2ConfigFile),
> -                           ["/boot/grub/grub.cfg"])
> +                           ["/boot/grub/grub.cfg","/grub/grub.cfg"])
> 
> 
>          if not fs:
>              # set the config file and parse it
> 
> 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Patch to fix pygrub with grub2 when /boot is a separate partition
  2010-03-05  8:49 ` Ian Campbell
@ 2010-03-05  9:28   ` David Markey
  0 siblings, 0 replies; 3+ messages in thread
From: David Markey @ 2010-03-05  9:28 UTC (permalink / raw)
  To: Ian Campbell; +Cc: Xen-devel


[-- Attachment #1.1: Type: text/plain, Size: 1611 bytes --]

Oops sorry.


Signed-off-by: David Markey <david@dmarkey.com>
--- /a/usr/bin/pygrub   2010-03-04 12:32:36.000000000 +0000
+++ /b/usr/bin/pygrub   2010-03-05 08:16:57.000000000 +0000
@@ -383,7 +383,7 @@
                            ["/boot/grub/menu.lst", "/boot/grub/grub.conf",
                             "/grub/menu.lst", "/grub/grub.conf"]) + \
                        map(lambda x: (x,grub.GrubConf.Grub2ConfigFile),
-                           ["/boot/grub/grub.cfg"])
+                           ["/boot/grub/grub.cfg","/grub/grub.cfg"])

         if not fs:
             # set the config file and parse it



On 5 March 2010 08:49, Ian Campbell <Ian.Campbell@citrix.com> wrote:

> On Fri, 2010-03-05 at 08:20 +0000, David Markey wrote:
> > Pygrub doesn't detect the grub2 config file when it's on a
> > separate /boot partition. This should fix it.
>
> Thanks. You should include a Signed-off-by line.
>
> Acked-by: Ian Campbell <ian.campbell@citrix.com>
>
> Ian.
>
> >
> >
> >
> >
> > --- /a/usr/bin/pygrub   2010-03-04 12:32:36.000000000 +0000
> > +++ /b/usr/bin/pygrub   2010-03-05 08:16:57.000000000 +0000
> > @@ -383,7 +383,7 @@
> >                             ["/boot/grub/menu.lst",
> > "/boot/grub/grub.conf",
> >                              "/grub/menu.lst", "/grub/grub.conf"]) + \
> >                         map(lambda x:
> > (x,grub.GrubConf.Grub2ConfigFile),
> > -                           ["/boot/grub/grub.cfg"])
> > +                           ["/boot/grub/grub.cfg","/grub/grub.cfg"])
> >
> >
> >          if not fs:
> >              # set the config file and parse it
> >
> >
>
>
>

[-- Attachment #1.2: Type: text/html, Size: 2762 bytes --]

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

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2010-03-05  9:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-03-05  8:20 Patch to fix pygrub with grub2 when /boot is a separate partition David Markey
2010-03-05  8:49 ` Ian Campbell
2010-03-05  9:28   ` David Markey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).