Bug#500336: patch for grub detection
Raphael Hertzog
hertzog at debian.org
Thu Oct 30 15:45:27 UTC 2008
On Thu, 30 Oct 2008, Ian Campbell wrote:
> This means that if I am running a pv ops kernel and I install a
> non-pvops kernel for whatever reason then my menu.lst will omit it.
Sure.
Let's come back to the root of this bug report, the problem is that
2.6.26-1-686-bigmem has CONFIG_XEN and CONFIG_PARAVIRT and is considered
to be a suitable dom0 kernel when in fact it's not.
They are added to xen0Kernels by the second loop:
# Second new style CONFIG_PARAVIRT kernels with xen support. There is
# no distinction between xen0 and xenU in these kernels.
for ver in `grep -l CONFIG_PARAVIRT=y /boot/config* | sed -e s%/boot/config-%%`; do
if ! grep -q CONFIG_XEN=y /boot/config-$ver ; then
continue
fi
[...]
What's the reasoning behind this loop ? All the suitable kernels are already selected
by the first loot that matches CONFIG_XEN + CONFIG_XEN_PRIVILEGED_GUEST.
Can't we simply drop this loop and be done with it ? What do I miss ?
All the kernels are still listed individually but that category of kernel is no
more combined with the hypervisor if it's available.
We at least reduce the number of bad combinations without dropping any good
combination if I trust the table given in
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=500336#25
Cheers,
--
Raphaël Hertzog
Le best-seller français mis à jour pour Debian Etch :
http://www.ouaza.com/livre/admin-debian/
More information about the Pkg-grub-devel
mailing list