From: Michael Young Date: Tue, 25 Oct 2011 18:19:19 +0000 (+0100) Subject: pygrub: Allow GPT partition references X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=26543b12807d22d0198af636b97e56c12c3f04ad;p=xen.git 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 Acked-by: Ian Campbell --- 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)