debuggers.hg
changeset 22284:6eaab8297681
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>
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>
author | Ian Campbell <ian.campbell@citrix.com> |
---|---|
date | Wed Oct 13 11:45:26 2010 +0100 (2010-10-13) |
parents | 5eee67899140 |
children | 606b0eb2caa7 |
files | tools/pygrub/src/GrubConf.py |
line diff
1.1 --- a/tools/pygrub/src/GrubConf.py Wed Oct 13 11:37:02 2010 +0100 1.2 +++ b/tools/pygrub/src/GrubConf.py Wed Oct 13 11:45:26 2010 +0100 1.3 @@ -77,6 +77,8 @@ class GrubDiskPart(object): 1.4 self._part = val 1.5 return 1.6 val = val.replace("(", "").replace(")", "") 1.7 + if val[:5] == "msdos": 1.8 + val = val[5:] 1.9 self._part = int(val) 1.10 part = property(get_part, set_part) 1.11