From 75ec176422951f6f0a1db13920e6da1445551265 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 9 Feb 2011 14:40:44 +0100 Subject: [PATCH] grub: add a patch to fix some issues in Xen detection, bumprev. --- .../grub/patches/20_linux_xen_misc_fixes.patch | 16 ++++++++++++++++ srcpkgs/grub/template | 1 + 2 files changed, 17 insertions(+) create mode 100644 srcpkgs/grub/patches/20_linux_xen_misc_fixes.patch diff --git a/srcpkgs/grub/patches/20_linux_xen_misc_fixes.patch b/srcpkgs/grub/patches/20_linux_xen_misc_fixes.patch new file mode 100644 index 0000000000..b3348aedab --- /dev/null +++ b/srcpkgs/grub/patches/20_linux_xen_misc_fixes.patch @@ -0,0 +1,16 @@ +Only process xen image files with .gz extension and regular files +not symlinks. + +--- util/grub.d/20_linux_xen.in.orig 2011-02-09 14:34:45.239824080 +0100 ++++ util/grub.d/20_linux_xen.in 2011-02-09 14:36:26.760493023 +0100 +@@ -98,8 +98,8 @@ linux_list=`for i in /boot/vmlinu[xz]-* + version=$(echo $basename | sed -e "s,^[^0-9]*-,,g") + if grub_file_is_not_garbage "$i" && grep -qx "CONFIG_XEN_DOM0=y" /boot/config-${version} 2> /dev/null ; then echo -n "$i " ; fi + done` +-xen_list=`for i in /boot/xen*; do +- if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi ++xen_list=`for i in /boot/xen*.gz; do ++ if grub_file_is_not_garbage "$i" && ! test -h "$i"; then echo -n "$i " ; fi + done` + prepare_boot_cache= + diff --git a/srcpkgs/grub/template b/srcpkgs/grub/template index d409a89063..3a418e37d0 100644 --- a/srcpkgs/grub/template +++ b/srcpkgs/grub/template @@ -1,5 +1,6 @@ # Template file for 'grub' pkgname=grub +revision=1 _distver=1.99 _patchver=rc1 version=${_distver}${_patchver}