projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc71252
)
pygrub: support grub2 "(hdX,msdosY)" partition syntax
author
Ian Campbell
<ian.campbell@citrix.com>
Wed, 13 Oct 2010 10:45:26 +0000
(11:45 +0100)
committer
Ian Campbell
<ian.campbell@citrix.com>
Wed, 13 Oct 2010 10:45:26 +0000
(11:45 +0100)
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>
tools/pygrub/src/GrubConf.py
patch
|
blob
|
history
diff --git
a/tools/pygrub/src/GrubConf.py
b/tools/pygrub/src/GrubConf.py
index bc0e53681ffc14a8c9607d7b62e374cbd04f0fb1..e19f0c25a769d195f0bcbded17234041fa6b26e9 100644
(file)
--- 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)