Phil Frost
2011-Oct-01 03:41 UTC
[Pkg-xen-devel] Bug#643953: xen-utils-4.0: pygrub can not parse empty "root" statement in menu.lst
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
Thomas Goirand
2011-Oct-03 01:13 UTC
[Pkg-xen-devel] Bug#643953: Bug#643953: xen-utils-4.0: pygrub can not parse empty "root" statement in menu.lst
On 10/01/2011 11:41 AM, Phil Frost wrote:> 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.How is this a problem with pygrub? If the configuration file is wrong, then it's normal not to boot, right? Or are you saying that it wrote a wrong configuration file? If so, how this happened? Thomas
Debian Bug Tracking System
2012-Jul-10 14:27 UTC
[Pkg-xen-devel] Bug#643953: marked as done (xen-utils-4.0: pygrub can not parse empty "root" statement in menu.lst)
Your message dated Tue, 10 Jul 2012 08:22:11 -0600 with message-id <1341930131.8586.41.camel at hastur.hellion.org.uk> 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 owner at bugs.debian.org immediately.) -- 643953: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=643953 Debian Bug Tracking System Contact owner at bugs.debian.org with problems -------------- next part -------------- An embedded message was scrubbed... From: Phil Frost <indigo at bitglue.com> Subject: xen-utils-4.0: pygrub can not parse empty "root" statement in menu.lst Date: Fri, 30 Sep 2011 23:41:26 -0400 Size: 4768 URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20120710/34503f2e/attachment-0002.mht> -------------- next part -------------- An embedded message was scrubbed... From: Ian Campbell <ijc at hellion.org.uk> Subject: Re: Bug#643953: Copy of the problematic grub config file? Date: Tue, 10 Jul 2012 08:22:11 -0600 Size: 3295 URL: <http://lists.alioth.debian.org/pipermail/pkg-xen-devel/attachments/20120710/34503f2e/attachment-0003.mht>
Seemingly Similar Threads
- Bug#603391: pygrub: unintelligible error messages
- 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