diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2010-04-15 17:36:55 +0100 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2010-04-15 17:36:55 +0100 |
commit | 757907af26fda8df608b58cbb3fede8eb03434c0 (patch) | |
tree | e7da4de442de7d94f8fc460d3a7010e538d92458 /tools/pygrub/src | |
parent | a667809cd458f9fb8685553d90e90aaced2dfdc5 (diff) | |
download | xen-757907af26fda8df608b58cbb3fede8eb03434c0.tar.gz xen-757907af26fda8df608b58cbb3fede8eb03434c0.tar.bz2 xen-757907af26fda8df608b58cbb3fede8eb03434c0.zip |
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>
Diffstat (limited to 'tools/pygrub/src')
-rw-r--r-- | tools/pygrub/src/GrubConf.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/pygrub/src/GrubConf.py b/tools/pygrub/src/GrubConf.py index c03f374156..51d0c17a4e 100644 --- a/tools/pygrub/src/GrubConf.py +++ b/tools/pygrub/src/GrubConf.py @@ -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) |