Bug#612898: grub-pc: 20_linux-xen can generate an empty menu which cannot be handled by grub

2011-02-11 Thread Michal Suchanek
Package: grub-pc
Version: 1.99~rc1-2
Severity: normal


I had /boot/xen-diff.patch (a difference between two kernel
configurations) and no actual xen kernel nor hypervisor.

This prevented update-grub from generating a config file.

The same happens when xen-hypervisor is installed but no xen kernel is
available.



-- Package-specific info:

-- System Information:
Debian Release: wheezy/sid
  APT prefers oldstable
  APT policy: (500, 'oldstable'), (500, 'unstable'), (500, 'testing'), (1, 
'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (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 grub-pc depends on:
ii  debconf [debconf-2.0]1.5.38  Debian configuration management sy
ii  grub-common  1.99~rc1-2  GRand Unified Bootloader, version 
ii  libc62.11.2-11   Embedded GNU C Library: Shared lib
ii  libdevmapper1.02.1   2:1.02.48-5 The Linux Kernel Device Mapper use
ii  ucf  3.0025+nmu1 Update Configuration File: preserv

grub-pc recommends no packages.

Versions of packages grub-pc suggests:
pn  desktop-base  none (no description available)



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#612898: grub-pc: 20_linux-xen can generate an empty menu which cannot be handled by grub

2011-02-11 Thread Colin Watson
tags 612898 fixed-upstream
thanks

On Fri, Feb 11, 2011 at 01:32:11PM +0100, Michal Suchanek wrote:
 I had /boot/xen-diff.patch (a difference between two kernel
 configurations) and no actual xen kernel nor hypervisor.
 
 This prevented update-grub from generating a config file.
 
 The same happens when xen-hypervisor is installed but no xen kernel is
 available.

Thanks for your report.  I've fixed this upstream:

2011-02-11  Colin Watson  cjwat...@ubuntu.com

* util/grub.d/20_linux_xen.in: Bail out early if linux_list is
empty, since in that case we can only generate either nothing or a
syntactically invalid configuration file.
Reported by: Michal Suchanek.  Fixes Debian bug #612898.

-- 
Colin Watson   [cjwat...@debian.org]



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org