From 742301f20ec29f0d773a2bcdee3717adac86342d Mon Sep 17 00:00:00 2001 From: Michael Prokop Date: Sat, 18 Jul 2020 21:58:49 +0200 Subject: [PATCH] grub/efi boot: load unicode font for nice looking boot splash The unicode fonts are necessary to get nice rounded corners and alike in the boot splash, so try to use it by default. This work was funded by Grml-Forensic. --- templates/grub-shim_config | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 -- 2.1.4