From 26543b12807d22d0198af636b97e56c12c3f04ad Mon Sep 17 00:00:00 2001 From: Michael Young Date: Tue, 25 Oct 2011 19:19:19 +0100 Subject: 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 --- tools/pygrub/src/GrubConf.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/pygrub') 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) -- cgit v1.2.3