[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grub2 background_image difficulty
From: |
Felix Zielcke |
Subject: |
Re: grub2 background_image difficulty |
Date: |
Wed, 22 Oct 2008 13:35:56 +0200 |
Am Mittwoch, den 22.10.2008, 12:34 +0100 schrieb José Campos:
> set root=(hd0,3)
> if background_image /grub/images/ESEIG.png ; then
> set menu_color_normal=white/black
> set menu_color_highlight=white/green
> else
> set menu_color_normal=red/black
> set menu_color_highlight=red/green
> fi
>
> terminal gfxterm
Oh and I think the problem is that you set `terminal gfxterm' after the
image is loaded and not before.
The update-grub script (or grub-mkconfig now in trunk SVN) normally
generates it that way.
For example here a snippet from my debian config:
### BEGIN /etc/grub.d/00_header ###
set default=0
set timeout=5
set root=(hd0,2)
search --fs-uuid --set 1867fa8e-a3f0-422d-912e-7d07556d633c
if font /usr/share/grub/ascii.pff ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
terminal gfxterm
fi
### END /etc/grub.d/00_header ###
### BEGIN /etc/grub.d/05_debian_theme ###
set root=(hd0,2)
search --fs-uuid --set 1867fa8e-a3f0-422d-912e-7d07556d633c
insmod png
if background_image /boot/grub/debian-blueish-wallpaper-640x480.png ; then
set color_normal=black/black
set color_highlight=magenta/black
else
set menu_color_normal=cyan/blue
set menu_color_highlight=white/blue
fi
### END /etc/grub.d/05_debian_theme ###