From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Markey Subject: Patch to fix pygrub with grub2 when /boot is a separate partition Date: Fri, 5 Mar 2010 08:20:48 +0000 Message-ID: <6894a6471003050020i213db4e1u7c8a57c5a392d7a1@mail.gmail.com> Reply-To: admin@dmarkey.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1991633291==" 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 List-Id: xen-devel@lists.xenproject.org --===============1991633291== Content-Type: multipart/alternative; boundary=001485f3bd5c90bd350481096448 --001485f3bd5c90bd350481096448 Content-Type: text/plain; charset=ISO-8859-1 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 --001485f3bd5c90bd350481096448 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Pygrub doesn't detect the grub2 config file when it's on a=A0s= eparate=A0/boot partition. This should fix it.

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

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

--001485f3bd5c90bd350481096448-- --===============1991633291== 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 --===============1991633291==--