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
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
|
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
Sunday, 10 May 2009, 22:18 GMT
Reason for closing: Implemented
Additional comments about closing: grub2 1.96_20090507-1
I'm building it now with a new snapshot. I'll upload it in a few days if everything remains working during that time.
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
}
###############################################
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 ?
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.
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