Bug#498242: PAE/non-PAE kernel-hypervisor-pairings in menu.lst
nutzteil at web.de
nutzteil at web.de
Mon Sep 8 12:10:18 UTC 2008
Package: grub
Version: 0.97-47
Severity: minor
Files: /usr/sbin/update-grub
debian testing lenny
Hello,
/var/lib/linux-image-2.6.26-1-xen-686/xen-versions is empty, so 'update-grub' gets the entrys for
xen-3.0.3-1-i386-pae.gz
xen-3.0.3-1-i386.gz
xen-3.2-1-i386-nonpae.gz
xen-3.2-1-i386.gz
To get off just the non-PAE-hypervisors:
--------------------------------------------------
--- update-grub 2008-09-08 11:59:55.000000000 +0200
+++ update-grub.pae-test 2008-09-08 13:13:32.000000000 +0200
@@ -940,6 +940,17 @@
if [ -z $found ]; then
for hypervisor in $hypervisors; do
+ if $(grep -q CONFIG_X86_32=y /boot/config-$kernelVersion) ; then
+ if $(grep -q CONFIG_X86_PAE=y /boot/config-$kernelVersion) ; then
+ if $(zcat /boot/$hypervisor | strings | grep -q "PAE disabled") ; then
+ continue
+ fi
+ else
+ if $(zcat /boot/$hypervisor | strings | grep -q "PAE enabled") ; then
+ continue
+ fi
+ fi
+ fi
hypVersion=`basename "$hypervisor" .gz | sed s%xen-%%`
echo "Found Xen hypervisor $hypVersion, kernel: $kernel" >&2
--------------------------------------------------
Okay, hypervisors features can't be tested this way, but all that would go obsolet, if /var/lib/linux-image-2.6.26-1-xen-686/xen-versions has correct entrys again.
Therefor i think of something like CompareVersions() for hypervisor<->/var/lib/linux-image*/xen-versions?
thanks
christian
____________________________________________________________________
Psssst! Schon vom neuen WEB.DE MultiMessenger gehört?
Der kann`s mit allen: http://www.produkte.web.de/messenger/?did=3123
More information about the Pkg-grub-devel
mailing list