* grub-core/font/font.c (grub_font_load): Add support for default
path for fonts ($prefix/fonts). * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition for checking if string is a path. * grub-core/normal/main.c (features): Add feature_default_font_path. * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH. * util/grub.d/00_header.in: Use default directory if possible. * util/grub-install.in: Install unicode.pf2.
This commit is contained in:
parent
b3e0862255
commit
274416e82f
7 changed files with 86 additions and 46 deletions
|
@ -451,6 +451,11 @@ if test -d "${pkgdatadir}"/themes/starfield; then
|
|||
cp "${pkgdatadir}"/themes/starfield/* "${grubdir}"/themes/starfield
|
||||
fi
|
||||
|
||||
if test -f "${pkgdatadir}"/unicode.pf2; then
|
||||
mkdir -p "${grubdir}"/fonts
|
||||
cp "${pkgdatadir}"/unicode.pf2 "${grubdir}"/fonts
|
||||
fi
|
||||
|
||||
is_path_readable_by_grub "${grubdir}/${target_cpu}-$platform" || (echo "${grubdir}" not readable 1>&2 ; exit 1)
|
||||
|
||||
# Write device to a variable so we don't have to traverse /dev every time.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue