pygrub: support grub2 "(hdX, msdosY)" partition syntax
PATCH 1/1 pygrub: support grub2 "(hdX, msdosY)" partition syntax
# HG changeset patch
# User Ian Campbell <[email protected]> # Date 1286899422 -3600
# Node ID 372959917c012db7d90aad0626a4af6b8f9b186f # Parent 2b9d32cb419d65622d213f501926c024dcfc306d
pygrub: support grub2 "(hdX,msdosY)" partition syntax
This appeared in Debian Squeeze at some point.
tools/pygrub/src/GrubConf.py +2 -0
@@ -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)
Stefano Stabellini
AppliedQuoted 11 lines · Ian Campbell
# HG changeset patch
# User Ian Campbell <[email protected]> # Date 1286899422 -3600
# Node ID372959917c012db7d90aad0626a4af6b8f9b186f# Parent2b9d32cb419d65622d213f501926c024dcfc306d
pygrub: support grub2 "(hdX,msdosY)" partition syntaxThis appeared in Debian Squeeze at some point.
Signed-off-by Ian Campbell <[email protected]>
applied, thanks
Quoted 8 lines · On Wednesday 13 October 2010 12:45:35 Stefano Stabellini wrote:
Quoted 7 lines · Ian Campbell
# HG changeset patch
# User Ian Campbell <[email protected]> # Date 1286899422 -3600
# Node ID372959917c012db7d90aad0626a4af6b8f9b186f# Parent2b9d32cb419d65622d213f501926c024dcfc306d
pygrub: support grub2 "(hdX,msdosY)" partition syntax
Quoted 5 lines
Quoted 3 lines
This appeared in Debian Squeeze at some point.
Signed-off-by Ian Campbell <[email protected]>applied, thanks
Could you apply it also to xen-4.0? This bug hit me today.
Regards,
Łukasz Oleś
Re: [PATCH] pygrub: support grub2 "(hdX, msdosY)" partition syntax [and 1 more messages]
Ian Campbell writes ("[Xen-devel] [PATCH] pygrub: support grub2 "(hdX, msdosY)" partition syntax"):
Quoted 1 line
pygrub: support grub2 "(hdX,msdosY)" partition syntax
áukasz Oleû writes ("Re: [Xen-devel] [PATCH] pygrub: support grub2 "(hdX, msdosY)" partition syntax"):
Quoted 1 line
Could you apply it also to xen-4.0? This bug hit me today.
Yes, this should go into 4.0-testing. Keir, would you cherry-pick it ? It's 22238:6eaab8297681 in xen-unstable.
Thanks,
Ian.