Skip to contentSkip to conversation

pygrub: support grub2 "(hdX, msdosY)" partition syntax

PATCH Applied Ian Campbell 4 participants 4 messages Oct 12, 2010 – Oct 28, 2010

lore
Share & tools
lore
#0 lore raw

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
diff -r 2b9d32cb419d -r 372959917c01 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)
#1 lore raw
Quoted 11 lines · Ian Campbell

# 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.

applied, thanks

#2 lore raw
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 ID 372959917c012db7d90aad0626a4af6b8f9b186f # Parent 2b9d32cb419d65622d213f501926c024dcfc306d
pygrub: support grub2 "(hdX,msdosY)" partition syntax

Quoted 5 lines
Quoted 3 lines

This appeared in Debian Squeeze at some point.

applied, thanks

Could you apply it also to xen-4.0? This bug hit me today.

Regards,
Łukasz Oleś

#3 lore raw

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.