update-grub thinks my kernel is a xen one
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
grub (Ubuntu) |
Fix Released
|
High
|
Colin Watson | ||
Lucid |
Fix Released
|
High
|
Steve Langasek | ||
Natty |
Fix Released
|
High
|
Colin Watson |
Bug Description
SRU justification:
The version of grub included in lucid has code for detecting Xen-only kernels which misfires on later kernel releases, where Xen guest support may be built into a kernel that can also be run on bare hardware. The distro kernels for natty and later are built in precisely this way, which means that the LTS backport kernels for natty and oneiric are also built this way - making it impossible to use these backported kernels on a 10.04 LTS system that's using grub 1 as its bootloader.
Test case:
1. Configure 10.04 LTS with grub as its bootloader.
2. Install the linux-image-
3. Install the grub package from lucid-proposed. Observe that the 3.0.0 kernel is no longer ignored by update-grub.
Binary package hint: grub
I noticed I'm not running that latest kernel and it seems that update-grub doesn't like the newest ones I have available.
10:49:13 - flash:[
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... found: /boot/grub/
grep: /boot/config: No such file or directory
grep: /boot/config.old: No such file or directory
Ignoring Xen kernel on non-Xen host: vmlinuz-
Ignoring Xen kernel on non-Xen host: vmlinuz-
Ignoring Xen kernel on non-Xen host: vmlinuz-
Found kernel: /vmlinuz-
Found kernel: /vmlinuz-
Found kernel: /vmlinuz-
Found kernel: /vmlinuz-
Found kernel: /vmlinuz-
Found kernel: /vmlinuz-
Found kernel: /vmlinuz-
Found kernel: /vmlinuz-
Found kernel: /vmlinuz-
Found kernel: /vmlinuz-
Found kernel: /vmlinuz-
Found kernel: /memtest86+.bin
Updating /boot/grub/menu.lst ... done
ProblemType: Bug
DistroRelease: Ubuntu 11.04
Package: grub 0.97-29ubuntu60
ProcVersionSign
Uname: Linux 2.6.37-7-generic x86_64
Architecture: amd64
CheckboxSubmission: fee5e196cb921cb
CheckboxSystem: 2a6f54df59af338
Date: Mon Dec 20 10:47:47 2010
ProcEnviron:
LANGUAGE=en_US:en
PATH=(custom, user)
LANG=en_US.UTF-8
LC_MESSAGES=
SHELL=/bin/zsh
SourcePackage: grub
Changed in grub (Ubuntu Natty): | |
milestone: | none → ubuntu-11.04-beta |
Changed in grub (Ubuntu Natty): | |
assignee: | nobody → Colin Watson (cjwatson) |
Changed in grub (Ubuntu Lucid): | |
assignee: | nobody → Steve Langasek (vorlon) |
description: | updated |
Changed in grub (Ubuntu Lucid): | |
status: | Triaged → In Progress |
It looks like this is because CONFIG_ XEN_PRIVILEGED_ GUEST, which is used to check whether or not a kernel is a Xen kernel, is no longer an accurate determinant. update-grub needs to either find some other way of identifying Xen-only kernels, or this code should be dropped.