Displaying 8 results from an estimated 8 matches for "grubdiskpart".
2013 Oct 01
2
Bug#603391: Bug#603391: Workaround PyGrub issue
...in reset
self._parse(lines)
File "GrubConf.py", line 105, in _parse
map(self.set_from_line, lines)
File "GrubConf.py", line 335, in set_from_line
setattr(self, self.commands[com], arg.strip())
File "GrubConf.py", line 113, in set_root
self._root = GrubDiskPart(val)
File "GrubConf.py", line 55, in __init__
(self.disk, self.part) = str.split(",", 2)
File "GrubConf.py", line 73, in set_disk
self.disk = ord(disk)-ord('a')
File "GrubConf.py", line 69, in set_disk
val = val.replace("("...
2013 Oct 01
0
Bug#603391: Bug#603391: Workaround PyGrub issue
...map(self.set_from_line, lines)
> File "/usr/lib/xen-4.1/lib/python/grub/GrubConf.py", line 330, in set_from_line
> setattr(self, self.commands[com], arg.strip())
> File "/usr/lib/xen-4.1/lib/python/grub/GrubConf.py", line 108, in set_root
> self._root = GrubDiskPart(val)
> File "/usr/lib/xen-4.1/lib/python/grub/GrubConf.py", line 55, in __init__
> (self.disk, self.part) = str.split(",", 2)
> File "/usr/lib/xen-4.1/lib/python/grub/GrubConf.py", line 70, in set_disk
> self._disk = int(val[2:])
> ValueError...
2013 Oct 01
0
Bug#603391: Bug#603391: Workaround PyGrub issue
...)
> File "GrubConf.py", line 105, in _parse
> map(self.set_from_line, lines)
> File "GrubConf.py", line 335, in set_from_line
> setattr(self, self.commands[com], arg.strip())
> File "GrubConf.py", line 113, in set_root
> self._root = GrubDiskPart(val)
> File "GrubConf.py", line 55, in __init__
> (self.disk, self.part) = str.split(",", 2)
> File "GrubConf.py", line 73, in set_disk
> self.disk = ord(disk)-ord('a')
> File "GrubConf.py", line 69, in set_disk
> v...
2013 Sep 29
2
Bug#603391: Workaround PyGrub issue
...ne 100, in _parse
map(self.set_from_line, lines)
File "/usr/lib/xen-4.1/lib/python/grub/GrubConf.py", line 330, in set_from_line
setattr(self, self.commands[com], arg.strip())
File "/usr/lib/xen-4.1/lib/python/grub/GrubConf.py", line 108, in set_root
self._root = GrubDiskPart(val)
File "/usr/lib/xen-4.1/lib/python/grub/GrubConf.py", line 55, in __init__
(self.disk, self.part) = str.split(",", 2)
File "/usr/lib/xen-4.1/lib/python/grub/GrubConf.py", line 70, in set_disk
self._disk = int(val[2:])
ValueError: invalid literal for int...
2010 Nov 13
0
Bug#603391: pygrub: unintelligible error messages
...ine 96, in _parse
map(self.set_from_line, lines)
File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 139, in set_from_line
setattr(self, self.commands[com], arg.strip())
File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 104, in set_root
self._root = GrubDiskPart(val)
File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 55, in __init__
(self.disk, self.part) = str.split(",", 2)
File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 70, in set_disk
self._disk = int(val[2:])
ValueError: invalid literal for int...
2013 Oct 10
1
[PATCH] pygrub: Support (/dev/xvda) style disk specifications
...[ -f $prefix/custom.cfg ]; then
+ source $prefix/custom.cfg;
+fi
+### END /etc/grub.d/41_custom ###
diff --git a/tools/pygrub/src/GrubConf.py b/tools/pygrub/src/GrubConf.py
index 6324c62..cb853c9 100644
--- a/tools/pygrub/src/GrubConf.py
+++ b/tools/pygrub/src/GrubConf.py
@@ -67,7 +67,11 @@ class GrubDiskPart(object):
return self._disk
def set_disk(self, val):
val = val.replace("(", "").replace(")", "")
- self._disk = int(val[2:])
+ if val.startswith("/dev/xvd"):
+ disk = val[len("/dev/xvd")]
+...
2010 Oct 06
1
Bug#599243: xen-utils-4.0: pygrub does not understand grub2 partition types (e.g. (hd0, msdos1) instead of (hd0, 1))
...ine 96, in _parse
map(self.set_from_line, lines)
File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 326, in set_from_line
setattr(self, self.commands[com], arg.strip())
File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 104, in set_root
self._root = GrubDiskPart(val)
File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 55, in __init__
(self.disk, self.part) = str.split(",", 2)
File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 80, in set_part
self._part = int(val)
ValueError: invalid literal for int() w...
2011 Oct 01
2
Bug#643953: xen-utils-4.0: pygrub can not parse empty "root" statement in menu.lst
...rse
map(self.set_from_line, lines)
File "/usr/lib/xen-4.0/bin/../lib/python/grub/GrubConf.py", line 141, in set_from_line
setattr(self, self.commands[com], arg.strip())
File "/usr/lib/xen-4.0/bin/../lib/python/grub/GrubConf.py", line 106, in set_root
self._root = GrubDiskPart(val)
File "/usr/lib/xen-4.0/bin/../lib/python/grub/GrubConf.py", line 57, in __init__
self.disk = str
File "/usr/lib/xen-4.0/bin/../lib/python/grub/GrubConf.py", line 70, in set_disk
self._disk = int(val[2:])
ValueError: invalid literal for int() with base 10: '&...