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

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