xcp-1.6-updates/xen-4.1.hg
changeset 23210:feb23d232cd9
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>
xen-unstable changeset: 24000:65679fee0177
Backport-requested-by: Pasi Karkkainen <pasik@iki.fi>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
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>
xen-unstable changeset: 24000:65679fee0177
Backport-requested-by: Pasi Karkkainen <pasik@iki.fi>
Committed-by: Ian Jackson <ian.jackson@eu.citrix.com>
author | Michael Young <m.a.young@durham.ac.uk> |
---|---|
date | Tue Jan 10 17:08:17 2012 +0000 (2012-01-10) |
parents | d581b9a3c726 |
children | c404dbf9b3c6 |
files | tools/pygrub/src/GrubConf.py |
line diff
1.1 --- a/tools/pygrub/src/GrubConf.py Tue Jan 10 17:07:58 2012 +0000 1.2 +++ b/tools/pygrub/src/GrubConf.py Tue Jan 10 17:08:17 2012 +0000 1.3 @@ -79,6 +79,8 @@ class GrubDiskPart(object): 1.4 val = val.replace("(", "").replace(")", "") 1.5 if val[:5] == "msdos": 1.6 val = val[5:] 1.7 + if val[:3] == "gpt": 1.8 + val = val[3:] 1.9 self._part = int(val) 1.10 part = property(get_part, set_part) 1.11