update-grub ignore ec2 kernels on xen domUs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub (Ubuntu) |
New
|
Undecided
|
Unassigned |
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
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-
lines 1416-1420:
if `echo "$xenKernels" | grep -q "$kern "` || `echo "$kern" | grep -q "xen"`; then
else
fi
Proposed change:
lines 1416-1420:
if `echo "$xenKernels" | grep -q "$kern "` || `echo "$kern" | grep -E -q "(xen|ec2)"`; then
else
fi