All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] pygrub: Fix Grub2 support for Ubuntu 10.04
@ 2010-04-15 14:52 David Markey
  0 siblings, 0 replies; only message in thread
From: David Markey @ 2010-04-15 14:52 UTC (permalink / raw)
  To: Xen-devel


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

Due to changes in grub2, menu entry titles now have single quote around them
rather than double quotes, but the memtest entries still are using double
quotes, so we need to catch both.

This is against 4.0

Signed-off-by: David Markey <david.markey@citrix.com>

--- 1/tools/pygrub/src/GrubConf.py  2010-04-15 15:38:54.000000000 +0100
+++ 2/tools/pygrub/src/GrubConf.py  2010-04-15 15:38:34.000000000 +0100
@@ -379,7 +379,7 @@
                 continue

             # new image
-            title_match = re.match('^menuentry "(.*)" (.*){', l)
+            title_match = re.match('^menuentry ["\'](.*)["\'] (.*){', l)
             if title_match:
                 if img is not None:
                     raise RuntimeError, "syntax error: cannot nest
menuentry (%d %s)" % (len(img),img)

[-- Attachment #1.2: Type: text/html, Size: 1106 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] only message in thread

only message in thread, other threads:[~2010-04-15 14:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-15 14:52 [PATCH] pygrub: Fix Grub2 support for Ubuntu 10.04 David Markey

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.