mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
pygrub: Fix Grub2 support for Ubuntu 10.04
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. Signed-off-by: David Markey <david.markey@citrix.com>
This commit is contained in:
1 parent
a667809cd4
commit
757907af26
1 file changed
+1
-1
@@ -379,7 +379,7 @@ class Grub2ConfigFile(_GrubConfigFile):
|
||||
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)
|
||||
|
||||