Bug#498234: menu.lst, update-grub: only vmlinuz* in ELF-format for xen-hypervisors
nutzteil at web.de
nutzteil at web.de
Mon Sep 8 11:40:07 UTC 2008
Package: grub
Version: 0.97-47
Files: /usr/sbin/update-grub
debian testing lenny
Because of the xen0Kernels
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
all want to have dom0-Kernels in ELF-format (is this standard?),
i made this change to exclude the normal kernels in Format "Linux x86 boot" from the Xen-Section in menu.lst:
---------------------------------------------------
--- update-grub 2008-09-08 11:43:51.000000000 +0200
+++ update-grub.new 2008-09-08 07:12:57.000000000 +0200
@@ -754,6 +754,9 @@
if ! grep -q CONFIG_XEN_PRIVILEGED_GUEST=y /boot/config-$ver ; then
continue
fi
+ if ! $(file -z /boot/vmlinuz-$ver | grep -iq ELF) ; then
+ continue
+ fi
# ver is a kernel version
kern="/boot/vmlinuz-$ver"
if [ -r $kern ] ; then
@@ -780,6 +783,9 @@
if ! grep -q CONFIG_XEN=y /boot/config-$ver ; then
continue
fi
+ if ! $(file -z /boot/vmlinuz-$ver | grep -iq ELF) ; then
+ continue
+ fi
# ver is a kernel version
kern="/boot/vmlinuz-$ver"
if [ -r $kern ] ; then
---------------------------------------------------
thanks
christian
________________________________________________________________________
Schon gehört? Bei WEB.DE gibt' s viele kostenlose Spiele:
http://games.entertainment.web.de/de/entertainment/games/free/index.html
More information about the Pkg-grub-devel
mailing list