summaryrefslogtreecommitdiffstats
path: root/make_slackware_live.sh
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2016-01-01 17:51:00 +0100
committer Eric Hameleers <alien@slackware.com>2016-01-01 17:51:00 +0100
commite097d633220a415704f1c1f5e654f4eccc83e9ac (patch)
tree40faa124626373145e78e01a0820c5f32257d3e3 /make_slackware_live.sh
parentf25356376a1e868c27d28dee7fce11ee4c357fca (diff)
downloadliveslak-e097d633220a415704f1c1f5e654f4eccc83e9ac.tar.gz
liveslak-e097d633220a415704f1c1f5e654f4eccc83e9ac.tar.xz
Generate our own Grub font files, to fix the bad font rendering at UEFI boot.
Slackware's shipped Grub font is 19 point in size which does not scale well. Research and proposed patch by Didier Spaier.
Diffstat (limited to 'make_slackware_live.sh')
-rwxr-xr-xmake_slackware_live.sh10
1 files changed, 9 insertions, 1 deletions
diff --git a/make_slackware_live.sh b/make_slackware_live.sh
index aaeec27..043e590 100755
--- a/make_slackware_live.sh
+++ b/make_slackware_live.sh
@@ -587,7 +587,7 @@ fi
# Are all the required add-on tools present?
PROG_MISSING=""
-for PROGN in mksquashfs unsquashfs syslinux mkisofs installpkg upgradepkg keytab-lilo ; do
+for PROGN in mksquashfs unsquashfs grub-mkfont syslinux mkisofs isohybrid installpkg upgradepkg keytab-lilo ; do
if ! which $PROGN 1>/dev/null 2>/dev/null ; then
PROG_MISSING="${PROG_MISSING}-- $PROGN\n"
fi
@@ -1315,6 +1315,14 @@ fi
mkdir -p ${LIVE_STAGING}/EFI/BOOT
cp -a ${LIVE_TOOLDIR}/EFI/BOOT/{grub-embedded.cfg,make-grub.sh,osdetect.cfg,theme} ${LIVE_STAGING}/EFI/BOOT/
+# Create the grub fonts used in the theme:
+for FSIZE in 5 10 12; do
+ grub-mkfont -s ${FSIZE} -bav \
+ -o ${LIVE_STAGING}/EFI/BOOT/theme/dejavusansmono${FSIZE}.pf2 \
+ /usr/share/fonts/TTF/DejaVuSansMono.ttf \
+ | grep "^Font name: "
+done
+
# The grub-embedded.cfg in the bootx64.efi looks for this file:
touch ${LIVE_STAGING}/EFI/BOOT/${MARKER}