|   | 
      | 
  
  
      | 
      | 
  
 
     | 
    | 
  
  
     | 
    | 
  
  
    |   | 
      | 
  
  
    | 
         
xen-changelog
[Xen-changelog] [xen-4.0-testing] pygrub: support grub2 "(hdX,	msdosY)" 
 
# HG changeset patch
# User Keir Fraser <keir@xxxxxxx>
# Date 1288345463 -3600
# Node ID 179150c0b36614a6a596ca5e872fea80d852a819
# Parent  18a752a248116454e2259a2d88c801835d19532f
pygrub: support grub2 "(hdX,msdosY)" partition syntax
This appeared in Debian Squeeze at some point.
Signed-off-by: Ian Campbell <ian.campbell@xxxxxxxxxx>
Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
committer: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx>
xen-unstable changeset:   22238:6eaab8297681
xen-unstable date:        Wed Oct 13 11:45:26 2010 +0100
---
 tools/pygrub/src/GrubConf.py |    2 ++
 1 files changed, 2 insertions(+)
diff -r 18a752a24811 -r 179150c0b366 tools/pygrub/src/GrubConf.py
--- a/tools/pygrub/src/GrubConf.py      Sun Oct 24 13:30:17 2010 +0100
+++ b/tools/pygrub/src/GrubConf.py      Fri Oct 29 10:44:23 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-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
 |   
 
| <Prev in Thread] | 
Current Thread | 
[Next in Thread> |  
- [Xen-changelog] [xen-4.0-testing] pygrub: support grub2 "(hdX,	msdosY)" partition syntax,
Xen patchbot-4.0-testing <=
  
 |  
  
 | 
    | 
  
  
    |   | 
    |