在引用的代码中插入:
----------------------------------------------------------------
fi
insmod gfxmenu
loadfont (\$root)/boot/grub/themes/vbuntu/DejaVuSans-Bold14.pf2
loadfont (\$root)/boot/grub/themes/vbuntu/DejaVuSans10.pf2
loadfont (\$root)/boot/grub/themes/vbuntu/DejaVuSans12.pf2
loadfont (\$root)/boot/grub/themes/vbuntu/ascii.pf2
insmod png
set theme=(\$root)/boot/grub/themes/vbuntu/grub-theme.txt
export theme
if [ x${boot_once} = xtrue ]; then
set timeout=0
elif sleep --interruptible 0 ; then
set timeout=8
-------------------------------------------------------------------
如:
# Gettext variables and module
if [ "x${LANG}" != "xC" ] && [ "x${LANG}" != "x" ]; then
cat << EOF
set locale_dir=\$prefix/locale
set lang=${grub_lang}
insmod gettext
###
fi
insmod gfxmenu
loadfont (\$root)/boot/grub/themes/vbuntu/DejaVuSans-Bold14.pf2
loadfont (\$root)/boot/grub/themes/vbuntu/DejaVuSans10.pf2
loadfont (\$root)/boot/grub/themes/vbuntu/DejaVuSans12.pf2
loadfont (\$root)/boot/grub/themes/vbuntu/ascii.pf2
insmod png
set theme=(\$root)/boot/grub/themes/vbuntu/grub-theme.txt
export theme
if [ x${boot_once} = xtrue ]; then
set timeout=0
elif sleep --interruptible 0 ; then
set timeout=8
###
EOF
fi