2009-08-07 Felix Zielcke <fzielcke@z-51.de>

* util/grub-mkconfig_lib.in (font_path): Move the functionality
	of it to ...
	* util/grub-mkconfig.in: ... here.  Prefer unicode.pf2 and
	unifont.pf2 over ascii.pf2.  Export LANG=C in case ascii.pf2 gets used.
This commit is contained in:
fzielcke 2009-08-07 12:18:03 +00:00
parent 9d5bdd2cf6
commit b969c52f6b
3 changed files with 28 additions and 28 deletions

View file

@ -148,23 +148,6 @@ prepare_grub_to_access_device ()
fi
}
font_path ()
{
for dir in ${pkgdatadir} /boot/grub /usr/share/grub ; do
# FIXME: We prefer ascii because loading complete fonts is too slow (and
# we don't yet provide the gettext magic that would make unicode useful).
for basename in ascii unicode unifont ; do
path="${dir}/${basename}.pf2"
if is_path_readable_by_grub ${path} > /dev/null ; then
echo "${path}"
return 0
fi
done
done
return 1
}
grub_file_is_not_garbage ()
{
if test -f "$1" ; then