* util/grub.d/00_header.in: Don't use LANG unless unifont is available.

This commit is contained in:
Vladimir 'phcoder' Serbinenko 2011-04-06 13:18:11 +02:00
parent adf594cc44
commit 2a961775e6
2 changed files with 17 additions and 10 deletions

View file

@ -1,3 +1,7 @@
2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
* util/grub.d/00_header.in: Don't use LANG unless unifont is available.
2011-04-06 Vladimir Serbinenko <phcoder@gmail.com> 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
Output errors if theme loading failed. Output errors if theme loading failed.

View file

@ -132,6 +132,19 @@ if loadfont `make_system_path_relative_to_its_root "${GRUB_FONT_PATH}"` ; then
set gfxmode=${GRUB_GFXMODE} set gfxmode=${GRUB_GFXMODE}
load_video load_video
insmod gfxterm insmod gfxterm
EOF
# Gettext variables and module
if [ "x${LANG}" != "xC" ] && [ -d "${locale_dir}" ] ; then
prepare_grub_to_access_device $(${grub_probe} --target=device ${locale_dir}) | sed -e "s/^/ /"
cat << EOF
set locale_dir=(\$root)$(make_system_path_relative_to_its_root ${locale_dir})
set lang=${grub_lang}
insmod gettext
EOF
fi
cat <<EOF
fi fi
EOF EOF
fi fi
@ -210,16 +223,6 @@ EOF
fi fi
fi fi
# Gettext variables and module
if [ "x${LANG}" != "xC" ] && [ -d "${locale_dir}" ] ; then
prepare_grub_to_access_device $(${grub_probe} --target=device ${locale_dir})
cat << EOF
set locale_dir=(\$root)$(make_system_path_relative_to_its_root ${locale_dir})
set lang=${grub_lang}
insmod gettext
EOF
fi
make_timeout () make_timeout ()
{ {
if [ "x${1}" != "x" ] ; then if [ "x${1}" != "x" ] ; then