tce-load -i compiletc lvm2-dev freetype-dev fuse-dev liblzma-dev dejavu-fonts-ttf wget https://ftp.gnu.org/gnu/grub/grub-2.06.tar.xz wget https://unifoundry.com/pub/unifont/unifont-13.0.06/font-builds/unifont-13.0.06.pcf.gz cd grub-2.06 sudo mkdir -pv /usr/local/share/fonts/unifont sudo gunzip -c ../unifont-13.0.06.pcf.gz > /usr/local/share/fonts/unifont/unifont.pcf sudo ln -s /usr/local/share/fonts /usr/share CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --with-platform=efi --target=x86_64 --disable-werror --enable-grub-mkfont CC="gcc -flto -mtune=generic -Os -pipe" CXX="g++ -flto -mtune=generic -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --target=x86_64 --disable-werror find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [4m 43.27s] sudo make install ******************************************************* GRUB2 will be compiled with following components: Platform: x86_64-efi With devmapper support: Yes With memory debugging: No With disk cache statistics: No With boot time statistics: No efiemu runtime: No (not available on efi) grub-mkfont: Yes grub-mount: Yes starfield theme: Yes With DejaVuSans font from /usr/share/fonts/dejavu/DejaVuSans.ttf With libzfs support: No (need zfs library) Build-time grub-mkfont: Yes With unifont from /usr/share/fonts/unifont/unifont.pcf With liblzma from -llzma (support for XZ-compressed mips images) With stack smashing protector: No ******************************************************* ******************************************************* GRUB2 will be compiled with following components: Platform: i386-pc With devmapper support: Yes With memory debugging: No With disk cache statistics: No With boot time statistics: No efiemu runtime: Yes grub-mkfont: Yes grub-mount: Yes starfield theme: Yes With DejaVuSans font from /usr/share/fonts/dejavu/DejaVuSans.ttf With libzfs support: No (need zfs library) Build-time grub-mkfont: Yes With unifont from /usr/share/fonts/unifont/unifont.pcf With liblzma from -llzma (support for XZ-compressed mips images) With stack smashing protector: No *******************************************************