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.
+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
echo "Setting up GRUB configuration for PXE/UEFI usage"
mkdir -p "${TFTPD_DATA_DIR_}/grub/"
cat > "${TFTPD_DATA_DIR_}/grub/grub.cfg" << EOT
insmod gfxterm
terminal_output gfxterm
insmod gfxterm
terminal_output gfxterm
set menu_color_normal=white/black
set menu_color_highlight=black/yellow
set menu_color_normal=white/black
set menu_color_highlight=black/yellow