Bug#500336: patch for grub detection
Thomas Viehmann
tv at beamnet.de
Fri Oct 17 21:40:07 UTC 2008
Hi,
based on Bastian's comments here and a clarification on IRC (thanks!), I
would like to propose the attached patch.
It implements the following behaviour
CONFIG_XEN + CONFIG_XEN_PRIVILEGED_GUEST
--> added to xen0Kernels
CONFIG_XEN + CONFIG_PARAVIRT
--> kept in kernel list
CONFIG_XEN + no CONFIG_PARAVIRT
--> removed from kernel list
(domU capable, but not bootable standalone)
no CONFIG_XEN
--> kept in kernel list
For the Debian (most of etch and lenny for i386 and amd64) kernels,
the valid config flags are
config-2.6.18-6-486
config-2.6.18-6-686
config-2.6.18-6-686-bigmem
config-2.6.18-6-amd64
config-2.6.18-6-k7
config-2.6.18-6-vserver-686
config-2.6.18-6-vserver-amd64
config-2.6.18-6-vserver-k7
config-2.6.18-6-xen-686 CONFIG_XEN CONFIG_XEN_PRIVILEGED_GUEST
config-2.6.18-6-xen-amd64 CONFIG_XEN CONFIG_XEN_PRIVILEGED_GUEST
config-2.6.18-6-xen-vserver-686 CONFIG_XEN CONFIG_XEN_PRIVILEGED_GUEST
config-2.6.18-6-xen-vserver-amd64 CONFIG_XEN CONFIG_XEN_PRIVILEGED_GUEST
config-2.6.26-1-486 CONFIG_PARAVIRT
config-2.6.26-1-686 CONFIG_PARAVIRT
config-2.6.26-1-686-bigmem CONFIG_XEN CONFIG_PARAVIRT
config-2.6.26-1-amd64 CONFIG_PARAVIRT
config-2.6.26-1-openvz-686 CONFIG_XEN CONFIG_PARAVIRT
config-2.6.26-1-openvz-amd64 CONFIG_PARAVIRT
config-2.6.26-1-vserver-686 CONFIG_PARAVIRT
config-2.6.26-1-vserver-686-bigmem CONFIG_XEN CONFIG_PARAVIRT
config-2.6.26-1-vserver-amd64 CONFIG_PARAVIRT
config-2.6.26-1-xen-686 CONFIG_XEN CONFIG_XEN_PRIVILEGED_GUEST
config-2.6.26-1-xen-amd64 CONFIG_XEN CONFIG_XEN_PRIVILEGED_GUEST
so we end up with:
bootable with xen kernel
- 2.6.26-1-xen-amd64
- 2.6.26-1-xen-686
- 2.6.18-6-xen-vserver-amd64
- 2.6.18-6-xen-vserver-686
- 2.6.18-6-xen-amd64
- 2.6.18-6-xen-686
bootable standalone
- 2.6.26-1-vserver-686-bigmem
- 2.6.26-1-vserver-amd64
- 2.6.26-1-vserver-686
- 2.6.26-1-openvz-amd64
- 2.6.26-1-openvz-686
- 2.6.26-1-686-bigmem
- 2.6.26-1-amd64
- 2.6.26-1-686
- 2.6.26-1-486
- 2.6.18-6-vserver-k7
- 2.6.18-6-vserver-amd64
- 2.6.18-6-vserver-686
- 2.6.18-6-686-bigmem
- 2.6.18-6-k7
- 2.6.18-6-amd64
- 2.6.18-6-686
- 2.6.18-6-486
I have also consolidated the detection and stuff to make use of the
sorted kernel list and postprocess that.
Even though the diff contains a changelog snippet, I would prefer to
have Bastian OK it and also happily leave uploading to the grub
maintainers, even though I could also NMU (e.g. when I get bored waiting
or it actually helps...).
Kind regards
T.
--
Thomas Viehmann, http://thomas.viehmann.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: grub.500336.xen-detection.diff
Type: text/x-patch
Size: 3885 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20081017/c717ece5/attachment.bin
More information about the Pkg-grub-devel
mailing list