Skip to contentSkip to conversation

Nasty bug with fonts and jpg background

DISCUSSION Chris C 2 participants 2 messages Apr 21, 2012 1 message not in the archive

lore
Share & tools
lore

Chris C

author
#1 lore raw
In reply to a message not in the archive

Hi all

I am still working on tracking this down but grub2-mkconfig bails out while processing the 00_header script.

Line 163 of the header script:

( prepare_grub_to_access_device `${grub_probe} --target=device "${font_path}" )

If i comment out this line it allows the program to jump over this script and continue.

It then bails out again when you have a jpg set in
the /etc/default/grub set. It then reports correctly yet bails out:

( terminal_output gfxterm
Found background: /boot/NoEvilLinux.jpg )

If i remove the line out of my /etc/default/grub

( #GRUB_BACKGROUND="/boot/NoEvilLinux.jpg" ) then the program continues to process and makes a grub.cfg successfully.

Of course while the program bails out it remains in the grb.cfg.new and is incomplete as it never got to process any further scripts beyond the header script.

Of course the most important failure to deal with is the fonts one that i commented out as a quick bodge to step over it. Any help on tracking it down is greatly appreciated and i hope this helps out in making it more stable for future release.

Thanks all and i am loving this version of grub so its well worth all the efforts.

#2 lore raw
Quoted 24 lines · Chris C

Hi all

I am still working on tracking this down but grub2-mkconfig bails out while processing the 00_header script.

Line 163 of the header script:

( prepare_grub_to_access_device `${grub_probe} --target=device "${font_path}" )

If i comment out this line it allows the program to jump over this script and continue.

It then bails out again when you have a jpg set in
the /etc/default/grub set. It then reports correctly yet bails out:

( terminal_output gfxterm
Found background: /boot/NoEvilLinux.jpg )

If i remove the line out of my /etc/default/grub

( #GRUB_BACKGROUND="/boot/NoEvilLinux.jpg" ) then the program continues to process and makes a grub.cfg successfully.

Quoted 8 lines

Of course while the program bails out it remains in the grb.cfg.new and is incomplete as it never got to process any further scripts beyond the header script.

Of course the most important failure to deal with is the fonts one that i commented out as a quick bodge to step over it. Any help on tracking it down is greatly appreciated and i hope this helps out in making it more stable for future release.

What's the output of:
grub-probe -t device -v -v /boot/NoEvilLinux.jpg

Quoted 8 lines

Thanks all and i am loving this version of grub so its well worth all the efforts.

_______________________________________________
Grub-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/grub-devel

Signature · 2 lines
Regards
Vladimir 'φ-coder/phcoder' Serbinenko