Displaying 10 results from an estimated 10 matches for "_disk".
Did you mean:
disk
2013 Oct 01
2
Bug#603391: Bug#603391: Workaround PyGrub issue
...ne
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 10
1
[PATCH] pygrub: Support (/dev/xvda) style disk specifications
...$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")]
+ self._disk = ord(disk)-ord(...
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 01
0
Bug#603391: Bug#603391: Workaround PyGrub issue
....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 Sep 29
2
Bug#603391: Workaround PyGrub issue
.../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
#
##...
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 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.
1997 Apr 09
1
R-beta: Re: memory problems FACTOR-8 / class 'pointer'
...ed graphic handling and
Jens> user interface. Bad news is: The version I saw needed 50 MB
Jens> RAM, so our equipment should have 64 MB RAM minimum. This is
Jens> somewhat FACTOR-8 compared to the S+3.3. Not to talk about big
Jens> datasets.
I believe the requirement is 50Mb of _disk space_, not 50Mb of memory.
I can run the beta of WinS+4.0 quite comfortably on a machine with 32
Mb of memory. I haven't tried machines with smaller amounts of memory
but I presume it would work there as well.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
r-hel...
2010 Nov 13
0
Bug#603391: pygrub: unintelligible error messages
.../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
.../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....