summaryrefslogtreecommitdiff
path: root/sys-boot/grub/files/00_fonts
diff options
context:
space:
mode:
authorBlackNoxis <steven.darklight@gmail.com>2014-02-15 23:24:26 +0200
committerBlackNoxis <steven.darklight@gmail.com>2014-02-15 23:24:26 +0200
commit7224c1253228e5c29c78cb3f0f26ce34770f2356 (patch)
tree1684924656132935256e034f35f92abee6623265 /sys-boot/grub/files/00_fonts
Added ebuilds for kogaion desktop
Diffstat (limited to 'sys-boot/grub/files/00_fonts')
-rwxr-xr-xsys-boot/grub/files/00_fonts14
1 files changed, 14 insertions, 0 deletions
diff --git a/sys-boot/grub/files/00_fonts b/sys-boot/grub/files/00_fonts
new file mode 100755
index 00000000..6f5d98b5
--- /dev/null
+++ b/sys-boot/grub/files/00_fonts
@@ -0,0 +1,14 @@
+# Create required fonts, otherwise graphic mode won't be loaded
+if [ -x "/usr/bin/grub2-mkfont" ]; then
+ # This is the bare minimum
+ /usr/bin/grub2-mkfont --output=/boot/grub/unifont.pf2 \
+ /usr/share/fonts/unifont/unifont.pcf.gz
+
+ # let's load DejaVu if exists, no deps against it
+ # to avoid crazy deps on critical pkg
+ if [ -x "/usr/share/fonts/dejavu/DejaVuSans.ttf" ]; then
+ /usr/bin/grub2-mkfont --output=/boot/grub/dejavu.pf2 \
+ /usr/share/fonts/dejavu/DejaVuSans.ttf
+ fi
+
+fi