aboutsummaryrefslogtreecommitdiffstats
path: root/tools/pygrub
diff options
context:
space:
mode:
authorMichael Young <m.a.young@durham.ac.uk>2011-10-25 19:19:19 +0100
committerMichael Young <m.a.young@durham.ac.uk>2011-10-25 19:19:19 +0100
commit26543b12807d22d0198af636b97e56c12c3f04ad (patch)
tree46fdd25ced918116dcf03a4d8ed9d3ee8756932a /tools/pygrub
parentf2fac180512f14843125fa365a8d11b1ad31b4cb (diff)
downloadxen-26543b12807d22d0198af636b97e56c12c3f04ad.tar.gz
xen-26543b12807d22d0198af636b97e56c12c3f04ad.tar.bz2
xen-26543b12807d22d0198af636b97e56c12c3f04ad.zip
pygrub: Allow GPT partition references
The grub2 configuration file in Fedora 16 can have GPT partition references like (hd0,gpt2) so remove the "gpt" string where necessary Signed-off-by: Michael Young <m.a.young@durham.ac.uk> Acked-by: Ian Campbell <ian.campbell@citrix.com>
Diffstat (limited to 'tools/pygrub')
-rw-r--r--tools/pygrub/src/GrubConf.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/pygrub/src/GrubConf.py b/tools/pygrub/src/GrubConf.py
index e19f0c25a7..26861af24f 100644
--- a/tools/pygrub/src/GrubConf.py
+++ b/tools/pygrub/src/GrubConf.py
@@ -79,6 +79,8 @@ class GrubDiskPart(object):
val = val.replace("(", "").replace(")", "")
if val[:5] == "msdos":
val = val[5:]
+ if val[:3] == "gpt":
+ val = val[3:]
self._part = int(val)
part = property(get_part, set_part)