Ian Campbell
2010-Oct-04 08:43 UTC
[Xen-devel] [PATCH] pygrub: support grub2 "(hdX, msdosY)" partition syntax
# HG changeset patch # User Ian Campbell <ian.campbell@citrix.com> # Date 1286181719 -3600 # Node ID 800cca2e5062d736e853f72970dbb3ced62396f8 # Parent fef04cf0bd3285a7f02bc043b280f8126241d55b pygrub: support grub2 "(hdX,msdosY)" partition syntax This appeared in Debian Squeeze at some point. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> diff -r fef04cf0bd32 -r 800cca2e5062 tools/pygrub/src/GrubConf.py --- a/tools/pygrub/src/GrubConf.py Fri Oct 01 14:19:25 2010 +0100 +++ b/tools/pygrub/src/GrubConf.py Mon Oct 04 09:41:59 2010 +0100 @@ -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) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Campbell
2010-Oct-12 16:04 UTC
[Xen-devel] [PATCH] pygrub: support grub2 "(hdX, msdosY)" partition syntax
# HG changeset patch # User Ian Campbell <ian.campbell@citrix.com> # Date 1286899422 -3600 # Node ID 372959917c012db7d90aad0626a4af6b8f9b186f # Parent 2b9d32cb419d65622d213f501926c024dcfc306d pygrub: support grub2 "(hdX,msdosY)" partition syntax This appeared in Debian Squeeze at some point. Signed-off-by: Ian Campbell <ian.campbell@citrix.com> diff -r 2b9d32cb419d -r 372959917c01 tools/pygrub/src/GrubConf.py --- a/tools/pygrub/src/GrubConf.py Tue Oct 12 17:03:42 2010 +0100 +++ b/tools/pygrub/src/GrubConf.py Tue Oct 12 17:03:42 2010 +0100 @@ -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) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Stefano Stabellini
2010-Oct-13 10:45 UTC
Re: [Xen-devel] [PATCH] pygrub: support grub2 "(hdX, msdosY)" partition syntax
On Tue, 12 Oct 2010, Ian Campbell wrote:> # HG changeset patch > # User Ian Campbell <ian.campbell@citrix.com> > # Date 1286899422 -3600 > # Node ID 372959917c012db7d90aad0626a4af6b8f9b186f > # Parent 2b9d32cb419d65622d213f501926c024dcfc306d > pygrub: support grub2 "(hdX,msdosY)" partition syntax > > This appeared in Debian Squeeze at some point. > > Signed-off-by: Ian Campbell <ian.campbell@citrix.com> >applied, thanks _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Łukasz Oleś
2010-Oct-27 22:06 UTC
Re: [Xen-devel] [PATCH] pygrub: support grub2 "(hdX, msdosY)" partition syntax
On Wednesday 13 October 2010 12:45:35 Stefano Stabellini wrote:> On Tue, 12 Oct 2010, Ian Campbell wrote: > > # HG changeset patch > > # User Ian Campbell <ian.campbell@citrix.com> > > # Date 1286899422 -3600 > > # Node ID 372959917c012db7d90aad0626a4af6b8f9b186f > > # Parent 2b9d32cb419d65622d213f501926c024dcfc306d > > pygrub: support grub2 "(hdX,msdosY)" partition syntax > > > > This appeared in Debian Squeeze at some point. > > > > Signed-off-by: Ian Campbell <ian.campbell@citrix.com> > > applied, thanksCould you apply it also to xen-4.0? This bug hit me today. Regards, Łukasz Oleś _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
Ian Jackson
2010-Oct-28 11:13 UTC
Re: [Xen-devel] [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"):> pygrub: support grub2 "(hdX,msdosY)" partition syntaxáukasz Oleû writes ("Re: [Xen-devel] [PATCH] pygrub: support grub2 "(hdX, msdosY)" partition syntax"):> 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. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel