WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] Patch to fix pygrub with grub2 when /boot is a separate

To: Ian Campbell <Ian.Campbell@xxxxxxxxxx>
Subject: Re: [Xen-devel] Patch to fix pygrub with grub2 when /boot is a separate partition
From: David Markey <admin@xxxxxxxxxxx>
Date: Fri, 5 Mar 2010 09:28:14 +0000
Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Fri, 05 Mar 2010 01:28:59 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1267778983.20243.26.camel@xxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <6894a6471003050020i213db4e1u7c8a57c5a392d7a1@xxxxxxxxxxxxxx> <1267778983.20243.26.camel@xxxxxxxxxxxxxxxxxxxxx>
Reply-to: admin@xxxxxxxxxxx
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Oops sorry.


Signed-off-by: David Markey <david@xxxxxxxxxxx>
--- /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@xxxxxxxxxx> 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@xxxxxxxxxx>

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



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>