search for: set_disk

Displaying 9 results from an estimated 9 matches for "set_disk".

Did you mean: get_disk
2013 Oct 01
2
Bug#603391: Bug#603391: Workaround PyGrub issue
..._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("(", "").replace(")", "") AttributeError: 'int' object has no attribute 'replace' > diff --git a/tools/pygrub/src/GrubCo...
2013 Oct 01
0
Bug#603391: Bug#603391: Workaround PyGrub issue
...elf.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("(", "").replace(")", "") > AttributeError: 'int' object has no attribute 'replace' Are you sure you edite...
2013 Oct 01
0
Bug#603391: Bug#603391: Workaround PyGrub issue
...;, 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() with base 10: 'ev/xvda' I think the following patch will fix this. If you could manually apply the GrubConf.py change to /usr/lib/xen-4.1/lib/python/grub/GrubConf.py and give it a go then I'll forward upstrea...
2013 Oct 08
2
Bug#603391: Bug#603391: Workaround PyGrub issue
I double-checked, I edited the file correctly. I don't know python much, but it seems the lower stack traces are deeper than the upper ones, which means somehow your calling "self.disk =" inside a set_disk method seems to have re-entered itself as if set_disk is a handler for self.disk =...
2013 Oct 10
1
[PATCH] pygrub: Support (/dev/xvda) style disk specifications
...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")] + self._disk = ord(disk)-ord(''a'...
2013 Oct 08
0
Bug#603391: Bug#603391: Workaround PyGrub issue
On Mon, 2013-10-07 at 21:13 -0700, Tril wrote: > I double-checked, I edited the file correctly. > > I don't know python much, but it seems the lower stack traces are > deeper than the upper ones, which means somehow your calling > "self.disk =" inside a set_disk method seems to have re-entered itself > as if set_disk is a handler for self.disk =... It should be self._disk (note the underscore) which is used inside the function. Ian.
2013 Sep 29
2
Bug#603391: Workaround PyGrub issue
...rub/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() with base 10: 'ev/xvda' Contents of grub.cfg triggering the error: # # DO NOT EDIT THIS FILE # # It is automatically generated by grub-mkconfig using templates # from /etc/grub.d and settings from /etc/default/grub # ##...
2010 Nov 13
0
Bug#603391: pygrub: unintelligible error messages
...rub/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() with base 10: 'ev/sda' # '/usr/lib/xen-4.0/bin/pygrub' --help Usage: /usr/lib/xen-4.0/bin/pygrub [-q|--quiet] [-i|--interactive] [--output=] [--kernel=] [--ramdisk=] [--args=] [--entry=] <image> -- Syste...
2011 Oct 01
2
Bug#643953: xen-utils-4.0: pygrub can not parse empty "root" statement in menu.lst
...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: '' -- System Information: Debian Release: 6.0.2 APT prefers stable APT policy: (500, 'stable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/1 CPU core) Locale: LANG=en_US....