Fix detection of dom0 kernels

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-06-28 02:24:08 +02:00
parent 19dcc49086
commit d86e186ff1

View file

@ -85,8 +85,10 @@ EOF
EOF
}
linux_list=`for i in /boot/vmlinu[xz]-*jeremy* /vmlinu[xz]-*jeremy* ; do
if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi
linux_list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* ; do
basename=$(basename $i)
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