[Pkg-xen-devel] Bug#643953: xen-utils-4.0: pygrub can not parse empty "root" statement in menu.lst

Phil Frost indigo at bitglue.com
Sat Oct 1 03:41:26 UTC 2011


Package: xen-utils-4.0
Version: 4.0.1-2
Severity: normal

Trying to get a system that I've long had runing on the bare metal to
boot as a VM, I discovered that pygrub would not parse my menu.lst. The
problematic entry is this:

  # This is a divider, added to separate the menu items below from the Debian
  # ones.
  title           Other operating systems:
  root

pygrub's parser seems to expect that "root" will be followed by a disk
specification. I get this traceback:

  File "./pygrub", line 669, in <module>
    chosencfg = run_grub(file, entry, fs, incfg["args"])
  File "./pygrub", line 549, in run_grub
    g = Grub(file, fs)
  File "./pygrub", line 205, in __init__
    self.read_config(file, fs)
  File "./pygrub", line 413, in read_config
    self.cf.parse(buf)
  File "/usr/lib/xen-4.0/bin/../lib/python/grub/GrubConf.py", line 284, in parse
    self.add_image(GrubImage(title, img))
  File "/usr/lib/xen-4.0/bin/../lib/python/grub/GrubConf.py", line 134, in __init__
    _GrubImage.__init__(self, title, lines)
  File "/usr/lib/xen-4.0/bin/../lib/python/grub/GrubConf.py", line 87, in __init__
    self.reset(lines)
  File "/usr/lib/xen-4.0/bin/../lib/python/grub/GrubConf.py", line 103, in reset
    self._parse(lines)
  File "/usr/lib/xen-4.0/bin/../lib/python/grub/GrubConf.py", line 98, in _parse
    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: ''

-- 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.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages xen-utils-4.0 depends on:
ii  e2fslibs                1.41.12-4stable1 ext2/ext3/ext4 file system librari
ii  iproute                 20100519-3       networking and traffic control too
ii  libc6                   2.11.2-10        Embedded GNU C Library: Shared lib
ii  libncurses5             5.7+20100313-5   shared libraries for terminal hand
ii  libxenstore3.0          4.0.1-2          Xenstore communications library fo
ii  python-support          1.0.10           automated rebuilding support for P
ii  python2.5               2.5.5-11         An interactive high-level object-o
ii  udev                    164-3            /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-2    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





More information about the Pkg-xen-devel mailing list