Michal Suchanek
2010-Nov-13 17:11 UTC
[Pkg-xen-devel] Bug#603391: pygrub: unintelligible error messages
Package: xen-utils-4.0 Version: 4.0.1-1 Severity: normal File: pygrub The pygrub awesome error messages are captured below. Please tell me what pygrub was doing and why it failed. I also don't understand why <image> is supposed to be an integer. # '/usr/lib/xen-4.0/bin/pygrub' '--kernel=/vmlinuz' '--ramdisk=/initrd.img' '/dev/sda3' linux (kernel /var/run/xend/boot/boot_kernel.lRKqfu)(ramdisk /var/run/xend/boot/boot_ramdisk '/usr/lib/xen-4.0/bin/pygrub' '--kernel=/boot/vmlinuz' '--ramdisk=/boot/initrd.img' '/dev/sda3' Traceback (most recent call last): File "/usr/lib/xen-4.0/bin/pygrub", line 671, in <module> data = fs.open_file(chosencfg["kernel"]).read() IOError: [Errno 2] No such file or directory # '/usr/lib/xen-4.0/bin/pygrub' '/dev/sda3' Using <class 'grub.GrubConf.GrubConfigFile'> to parse /boot/grub/menu.lst Traceback (most recent call last): File "/usr/lib/xen-4.0/bin/pygrub", line 669, in <module> chosencfg = run_grub(file, entry, fs, incfg["args"]) File "/usr/lib/xen-4.0/bin/pygrub", line 549, in run_grub g = Grub(file, fs) File "/usr/lib/xen-4.0/bin/pygrub", line 205, in __init__ self.read_config(file, fs) File "/usr/lib/xen-4.0/bin/pygrub", line 413, in read_config self.cf.parse(buf) File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 282, in parse self.add_image(GrubImage(title, img)) File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 132, in __init__ _GrubImage.__init__(self, title, lines) File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 85, in __init__ self.reset(lines) File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 101, in reset self._parse(lines) File "/usr/lib/xen-4.0/lib/python/grub/GrubConf.py", line 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() 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> -- System Information: Debian Release: squeeze/sid APT prefers testing APT policy: (990, 'testing'), (800, 'stable'), (400, 'unstable'), (200, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 2.6.32-5-xen-amd64 (SMP w/1 CPU core) Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages xen-utils-4.0 depends on: ii e2fslibs 1.41.12-2 ext2/ext3/ext4 file system librari ii iproute 20100519-3 networking and traffic control too ii libc6 2.11.2-7 Embedded GNU C Library: Shared lib ii libncurses5 5.7+20100313-4 shared libraries for terminal hand ii libxenstore3.0 4.0.1-1 Xenstore communications library fo ii python-support 1.0.10 automated rebuilding support for P ii python2.5 2.5.5-10 An interactive high-level object-o ii udev 163-2 /dev/ and hotplug management daemo ii xen-utils-common 4.0.0-1 XEN administrative tools - common ii zlib1g 1:1.2.3.4.dfsg-3 compression library - runtime Versions of packages xen-utils-4.0 recommends: ii bridge-utils 1.4-5 Utilities for configuring the Linu ii xen-hypervisor-4.0-amd64 [xen 4.0.1-1 The Xen Hypervisor on AMD64 Versions of packages xen-utils-4.0 suggests: pn xen-docs-4.0 <none> (no description available) -- no debconf information
Possibly Parallel Threads
- Bug#643953: xen-utils-4.0: pygrub can not parse empty "root" statement in menu.lst
- Bug#599243: xen-utils-4.0: pygrub does not understand grub2 partition types (e.g. (hd0, msdos1) instead of (hd0, 1))
- PyGrub And Grub2 Submenus
- Bug#603391: Bug#603391: Workaround PyGrub issue
- Bug#603391: Bug#603391: Workaround PyGrub issue