Your message dated Tue, 10 Jul 2012 08:22:11 -0600
with message-id <[email protected]>
and subject line Re: Bug#643953: Copy of the problematic grub config file?
has caused the Debian Bug report #643953,
regarding xen-utils-4.0: pygrub can not parse empty "root" statement in menu.lst
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
643953: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=643953
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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
--- End Message ---
--- Begin Message ---
Version: 4.1.3~rc1+hg-20120614.a9c0a89c08f2-2
On Tue, 2012-07-10 at 07:42 -0400, Phil Frost wrote:
> On 07/09/2012 10:44 PM, Ian Campbell wrote:
> > Do you by any chance have a copy of the problematic configuration file?
>
> Unfortunately not. Best I can tell, older versions of Debian's
> update-grub would output that divider, but I can't find anything in my
> current install that would generate it. Best I can do is find some
> unrelated examples from other people, like this one:
>
> http://old.nabble.com/Re:-Grub2---windows-p25735425.html
Thanks, I tested the config file in this link with the pygrub (using
[1]) from the above package version and it seemed ok. Closing the bug.
Cheers,
Ian.
[1] python /usr/lib/xen-4.1/lib/python/grub/GrubConf.py grub2 grub.cfg
--- End Message ---