diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2010-10-13 11:45:26 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2010-10-13 11:45:26 +0100 |
commit | ab223ad3d65f6f3a822df69eb2b24e786c3a888d (patch) | |
tree | 843d8a431c9900c33c8fd382c134dfb34aede4af /tools/pygrub/src/GrubConf.py | |
parent | bc712520fabbeb25ced993c57dd05bcf77aea758 (diff) | |
download | xen-ab223ad3d65f6f3a822df69eb2b24e786c3a888d.tar.gz xen-ab223ad3d65f6f3a822df69eb2b24e786c3a888d.tar.bz2 xen-ab223ad3d65f6f3a822df69eb2b24e786c3a888d.zip |
pygrub: support grub2 "(hdX,msdosY)" partition syntax
This appeared in Debian Squeeze at some point.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
committer: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Diffstat (limited to 'tools/pygrub/src/GrubConf.py')
-rw-r--r-- | tools/pygrub/src/GrubConf.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/pygrub/src/GrubConf.py b/tools/pygrub/src/GrubConf.py index bc0e53681f..e19f0c25a7 100644 --- a/tools/pygrub/src/GrubConf.py +++ b/tools/pygrub/src/GrubConf.py @@ -77,6 +77,8 @@ class GrubDiskPart(object): self._part = val return val = val.replace("(", "").replace(")", "") + if val[:5] == "msdos": + val = val[5:] self._part = int(val) part = property(get_part, set_part) |