* util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.

* util/grub.d/10_kfreebsd.in: Likewise.
	* util/grub.d/10_linux.in: Likewise.
	* util/grub.d/20_linux_xen.in: Likewise.
This commit is contained in:
Vladimir 'phcoder' Serbinenko 2010-11-01 12:49:40 +01:00
parent 6428dec358
commit 74aaf558ef
5 changed files with 16 additions and 4 deletions

View file

@ -76,7 +76,9 @@ kfreebsd_entry ()
title="$(gettext_quoted "%s, with kFreeBSD %s")"
fi
printf "menuentry '${title}' ${CLASS} {\n" "${os}" "${version}"
save_default_entry | sed -e "s/^/\t/"
if ! ${recovery} ; then
save_default_entry | sed -e "s/^/\t/"
fi
if [ -z "${prepare_boot_cache}" ]; then
prepare_boot_cache="$(prepare_grub_to_access_device ${GRUB_DEVICE_BOOT} | sed -e "s/^/\t/")"
fi