X-Git-Url: http://git.grml.org/?p=grml-terminalserver.git;a=blobdiff_plain;f=templates%2Fgrub-shim_config;fp=templates%2Fgrub-shim_config;h=5515f2eb4e1190ac4936d7a899fb5f2be18fb713;hp=fdfba5c45eddddafeca29f0189ea126886bb2252;hb=742301f20ec29f0d773a2bcdee3717adac86342d;hpb=39ada230f9b0db884199a576d75b6cf973007e1f diff --git a/templates/grub-shim_config b/templates/grub-shim_config index fdfba5c..5515f2e 100644 --- a/templates/grub-shim_config +++ b/templates/grub-shim_config @@ -45,6 +45,16 @@ else return "$ret_" fi +if [ -r "${TFTPD_DATA_DIR_}"/grub/fonts/unicode.pf2 ] ; then + echo "${TFTPD_DATA_DIR_}/grub/fonts/unicode.pf2 exists already, nothing to do." +elif [ -r /usr/share/grub/unicode.pf2 ] ; then + echo "Installing /usr/share/grub/unicode.pf2 for TFTP usage" + mkdir -p "${TFTPD_DATA_DIR_}"/grub/fonts/ + cp /usr/share/grub/unicode.pf2 "${TFTPD_DATA_DIR_}"/grub/fonts/ +else + echo "WARN: No unicode.pf2 for usage with PXE boot found." +fi + echo "Setting up GRUB configuration for PXE/UEFI usage" mkdir -p "${TFTPD_DATA_DIR_}/grub/" cat > "${TFTPD_DATA_DIR_}/grub/grub.cfg" << EOT @@ -58,6 +68,8 @@ set gfxmode=auto insmod gfxterm terminal_output gfxterm +loadfont unicode + set menu_color_normal=white/black set menu_color_highlight=black/yellow