FS#14238 - [GRUB2] add --enable-grub-mkfont to configure

Attached to Project: Arch Linux
Opened by Alexandre Bique (babali) - Tuesday, 14 April 2009, 17:20 GMT
Last edited by Ronald van Haren (pressh) - Sunday, 10 May 2009, 22:18 GMT
Task Type Feature Request
Category Packages: Extra
Status Closed
Assigned To Ronald van Haren (pressh)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No

Details

Description:

grub2 should be configured with mkfont enabled.
grub-mkfont is a tool which allow you to create font for grub2. This is requiered if you want to change the resolution in grub and set a background.

You just have to add --enable-grub-mkfont to the configure.

This is important because 64bit users can't recompile grub2 through abs/makepkg.

Thank you very much.
This task depends upon

Closed by  Ronald van Haren (pressh)
Sunday, 10 May 2009, 22:18 GMT
Reason for closing:  Implemented
Additional comments about closing:  grub2 1.96_20090507-1
Comment by Ronald van Haren (pressh) - Wednesday, 15 April 2009, 13:30 GMT
would this add any extra deps?
Comment by Alexandre Bique (babali) - Wednesday, 15 April 2009, 14:50 GMT
no, grub-mkfont is builtin.
Comment by Ronald van Haren (pressh) - Thursday, 07 May 2009, 09:43 GMT
it required an extra dependency on freetype2 but that is fine.
I'm building it now with a new snapshot. I'll upload it in a few days if everything remains working during that time.
Comment by Ronald van Haren (pressh) - Thursday, 07 May 2009, 09:53 GMT
woot....and we have ruby added as a dependency :S
Comment by Alexandre Bique (babali) - Thursday, 07 May 2009, 10:24 GMT
but grub2 is in extra so is it a problem ?
Comment by Ronald van Haren (pressh) - Thursday, 07 May 2009, 11:11 GMT
no not really, I doubt it is even caused by the switch and it should be an optional dep as the ruby script was already present in the previous package (I really have to check what the script does).

Now I'm trying to configure it, but somehow the background does not appear (the font does). Maybe you know what I'm doing wrong here in my grub.cfg

##################################
set default=0
set timeout=10
if loadfont /boot/grub/fonts/ascii.pf2 ; then
set gfxmode=1024x768x32
insmod gfxterm
insmod vbe
terminal_output gfxterm
fi
insmod png
background_image /boot/grub/themes/archsimpleblack-xabz/desktop.png

set menu_color_normal=light-blue/black
set menu_color_highlight=light-cyan/blue

# (0) Arch Linux
menuentry "Arch Linux" {
set root=(hd0,3)
linux /boot/vmlinuz26 root=/dev/sda3 ro
initrd /boot/kernel26.img
}
###############################################
Comment by Alexandre Bique (babali) - Thursday, 07 May 2009, 11:23 GMT
try with
set gfxmode="1024x768x32"

and

if terminal_output gfxterm; then true ; else
terminal gfxterm
fi

ensure that the file /boot/grub/fonts/ascii.pf2 exists. It may be a good idea to ship at least one valid pf2 font file with the packet ?
Comment by Ronald van Haren (pressh) - Thursday, 07 May 2009, 11:43 GMT
yes I will ship an unifont pf2 file with the package.

no, still no background. Weird that everything else seems to be working. I need to play a bit more with it when I'm back from a meeting.
Comment by Ronald van Haren (pressh) - Sunday, 10 May 2009, 22:18 GMT
okay it is working now. uploaded a new package.
Except for the background_image file not included, so get your own, add something similar to this to your grub.cfg:


if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode="1024x768x32"
insmod gfxterm
insmod vbe
terminal_output gfxterm
if terminal_output gfxterm; then true ; else
terminal gfxterm
fi
fi
insmod tga
background_image /boot/grub/archlinux.tga

Loading...