[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] pygrub: Fix Grub2 support for Ubuntu 10.04


  • To: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: David Markey <admin@xxxxxxxxxxx>
  • Date: Thu, 15 Apr 2010 15:52:34 +0100
  • Delivery-date: Thu, 15 Apr 2010 08:00:49 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

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

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

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.