I've been playing with GRUB2 and splash screens.  I've got it working so 
I wanted to make an lfs screen with a somewhat dark background so that 
the menu would show over it.

I played around with gimp and came up with:

    http://linuxfromscratch.org/~bdubbs/lfs.png

I thought I'd share it.  The base image is from

   http://commons.wikimedia.org/wiki/Category:Tux

To use it in GRUB2, first make a font:

wget  http://unifoundry.com/unifont-5.1.20080820.bdf.gz
gunzip unifont-5.1.20080820.bdf.gz
grub-mkfont -o unifont.pf2 unifont-5.1.20080820.bdf
cp unifont.pf2 /boot/grub

Then I created a 1024x768 tga version of the above file and put that in 
/boot/grub.

Finally I updated /boot/grub/grub.config to add:

### grub.cfg
set default=0
set timeout=15

insmod ext2
set root=(hd0,1)

loadfont /grub/unifont.pf2
#set gfxmode="1024x768;800x600;640x480"
insmod gfxterm
insmod vbe
insmod tga

terminal_output gfxterm
if terminal_output gfxterm ; then true ; else
     terminal gfxterm
fi

if background_image /grub/lfs.tga ; then
    set menu_color_normal=light-gray/black
    set menu_color_highlight=white/black
else
    set menu_color_normal=cyan/blue
    set menu_color_highlight=white/blue
fi
...

Works for me and looks pretty decent.  There is some GRUB2 generated 
text over the words in the image, but it doesn't distract too much.

Enjoy.

   -- Bruce
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to