Skip to contentSkip to conversation

Problems with loadfont and loading

DISCUSSION Paul Menzel 1 participant 1 message Sep 11, 2017

lore
Share & tools
lore
#0 lore raw

Dear GRUB folks,

Using coreboot with the GRUB payload, the font file is not found.

I build GRUB as a coreboot payload, but only tell the configuration file in the memdisk to load the configuration file from the hard disk. (root is the partition mounted to /boot.)

configfile /grub/grub.cfg

That file is generated by the operating system (update-grub from Debian 9 (Stretch/stable)).

From the header configuration files, the Debian GRUB configuration file contains the code below.

```
if [ x$feature_default_font_path = xy ] ; then
   font=unicode
else
[…]
```

But loadfont uses the variable prefix, which differs between the GRUB payload and GRUB in the MBR. So the font is not found on the hard disk.

Is there a general solution for this problem? Can the header be adapted, or loadfont be improved?

Thanks,

Paul