* util/grub.d/20_linux_xen.in: Skip xen-syms.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2012-06-05 11:55:48 +02:00
parent 1c715b5afd
commit 1e1eb50e5e
2 changed files with 15 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub.d/20_linux_xen.in: Skip xen-syms.
2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub-probe.c (escape_of_path): Don't add ieee1275/.

View file

@ -156,8 +156,18 @@ linux_list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-*; do
if [ "x${linux_list}" = "x" ] ; then
exit 0
fi
file_is_not_sym () {
case "$1" in
*/xen-syms-*)
return 1;;
*)
return 0;;
esac
}
xen_list=`for i in /boot/xen*; do
if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
if grub_file_is_not_garbage "$i" && file_is_not_sym "$i" ; then echo -n "$i " ; fi
done`
prepare_boot_cache=
boot_device_id=