update-grub ignore ec2 kernels on xen domUs

Bug #522222 reported by Foscarini on 2010-02-15
This bug affects 2 people
Affects Status Importance Assigned to Milestone
grub (Ubuntu)

Bug Description

Binary package hint: grub

root@lucid:~# lsb_release -rd
Description: Ubuntu lucid (development branch)
Release: 10.04

root@lucid:~# apt-cache policy grub
  Installed: 0.97-29ubuntu59
  Candidate: 0.97-29ubuntu59
  Version table:
 *** 0.97-29ubuntu59 0

In Karmic and Lucid the xen domU kernel is renamed to "-ec2", but update-grub is still looking only for "vmlinuz-version-xen" kernels to add to menu.lst:

lines 1416-1420:
        if `echo "$xenKernels" | grep -q "$kern "` || `echo "$kern" | grep -q "xen"`; then

Proposed change:
lines 1416-1420:
        if `echo "$xenKernels" | grep -q "$kern "` || `echo "$kern" | grep -E -q "(xen|ec2)"`; then

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers