From: Michael Prokop Date: Sat, 18 Jul 2020 19:58:49 +0000 (+0200) Subject: grub/efi boot: load unicode font for nice looking boot splash X-Git-Tag: v0.103.1~1 X-Git-Url: http://git.grml.org/?p=grml-terminalserver.git;a=commitdiff_plain;h=742301f20ec29f0d773a2bcdee3717adac86342d 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. --- 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