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 -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --with-platform=efi --target=i386 --disable-werror --enable-grub-mkfont CC="gcc -flto -march=i486 -mtune=i686 -Os -pipe" CXX="g++ -flto -march=i486 -mtune=i686 -Os -pipe -fno-exceptions -fno-rtti" ./configure --prefix=/usr/local --target=i386 --disable-werror find . -name Makefile -type f -exec sed -i 's/-g -O2//g' {} \; make [5m 23.08s] sudo make install ******************************************************* GRUB2 will be compiled with following components: Platform: i386-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: No (cannot compile with -m64 -mcmodel=large -mno-red-zone -nostdlib) 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 *******************************************************