Skip to contentSkip to conversation

grub2 background_image difficulty

DISCUSSION José Campos 3 participants 7 messages Oct 22, 2008 – Oct 24, 2008

lore
Share & tools
lore
#0 lore raw

I have both windows and linux(fedora core8) installed on.

I have also installed grub2(v1.96, source compiled by me) as the boot loader.

I just can’t load any image as background as you can see on grub.cfg bellow(perhaps some non necessary commands).

Images are on partition(sda3) within images directory, the .mod files and grub.cfg are as well on the sda3.

################################

set default=0
set timeout=5

insmod linux
insmod terminal
insmod boot

insmod gfxterm
insmod vbe
insmod vga
set gfxmode=640x480
insmod png

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

menuentry "GNU/Linux, linux 2.6.25-14.fc9.i686" {
linux (hd0,3)/vmlinuz-2.6.25-14.fc9.i686 root=/dev/sda5 ro initrd (hd0,3)/initrd-2.6.25-14.fc9.i686.img
}
menuentry "Windows XP Proffessional" {
set root=(hd0,1)
chainloader +1
}

################################

Appreciate any help

Jose Campos

#1 lore raw

Am Mittwoch, den 22.10.2008, 12:34 +0100 schrieb José Campos:

Quoted 5 lines

I have both windows and linux(fedora core8) installed on.

I have also installed grub2(v1.96, source compiled by me) as the boot loader.

Hello,

Don't use the 1.96 release from february but trunk SVN version. There were many bugfixes since then and I think even in the png module something was fixed in the last months.

Signature · 1 line
Felix Zielcke
#4 lore raw
In reply to José Campos

Am Mittwoch, den 22.10.2008, 12:34 +0100 schrieb José Campos:

Quoted 10 lines

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 ###

#2 lore raw

svn timed out

In reply to Felix Zielcke

Hello,

When i try to trunk svn version off grub2 I receive the following message like bellow:

####

[root@Apolo ~]# svn co svn://svn.savannah.gnu.org/grub/trunk/grub2
svn: Can't connect to host 'svn.savannah.gnu.org': Connection timed out

####

Can you help me.

Thanks

-----Mensagem original-----
De: [email protected] [mailto:[email protected]] Em nome de Felix Zielcke
Enviada: quarta-feira, 22 de Outubro de 2008 12:31
Para: The development of GRUB 2
Assunto: Re: grub2 background_image difficulty

Am Mittwoch, den 22.10.2008, 12:34 +0100 schrieb José Campos:

Quoted 5 lines

I have both windows and linux(fedora core8) installed on.

I have also installed grub2(v1.96, source compiled by me) as the boot loader.

Hello,

Don't use the 1.96 release from february but trunk SVN version. There were many bugfixes since then and I think even in the png module something was fixed in the last months.

Signature · 8 lines
Felix Zielcke



_______________________________________________
Grub-devel mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/grub-devel
#3 lore raw

Re: svn timed out

You should use this
svn co svn://svn.sv.gnu.org/grub/trunk/grub2

Quoted 34 lines · José Campos

Hello,

When i try to trunk svn version off grub2 I receive the following message like bellow:

####

[root@Apolo ~]# svn co svn://svn.savannah.gnu.org/grub/trunk/grub2
svn: Can't connect to host 'svn.savannah.gnu.org': Connection timed out

####

Can you help me.

Thanks

-----Mensagem original-----
De: [email protected] [mailto:[email protected]] Em nome de Felix Zielcke
Enviada: quarta-feira, 22 de Outubro de 2008 12:31
Para: The development of GRUB 2
Assunto: Re: grub2 background_image difficulty

Am Mittwoch, den 22.10.2008, 12:34 +0100 schrieb José Campos:

Quoted 5 lines

I have both windows and linux(fedora core8) installed on.

I have also installed grub2(v1.96, source compiled by me) as the boot loader.

Hello,

Don't use the 1.96 release from february but trunk SVN version. There were many bugfixes since then and I think even in the png module something was fixed in the last months.

Signature · 4 lines
Best Regards,

Manoel Abranches <[email protected]>
IBM Linux Technology Center Brazil
#5 lore raw
In reply to Felix Zielcke

Hello, thanks I already done trunk the svn version by using: svn co http://svn...

Now I have one more question.
About the font o load on your sample grub.cfg. Where or how do I get the ascii.pff font file?

Thanks for your help.

José Campos

-----Mensagem original-----
De: [email protected] [mailto:[email protected]] Em nome de Felix Zielcke
Enviada: quarta-feira, 22 de Outubro de 2008 12:36
Para: The development of GRUB 2
Assunto: Re: grub2 background_image difficulty

Am Mittwoch, den 22.10.2008, 12:34 +0100 schrieb José Campos:

Quoted 10 lines

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 ###

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

#6 lore raw

Am Freitag, den 24.10.2008, 17:19 +0100 schrieb José Campos:

Quoted 3 lines

Now I have one more question.
About the font o load on your sample grub.cfg. Where or how do I get the ascii.pff font file?

Hi,

you need /usr/share/unifont/unifont.hex file which is in Debian etch and Ubuntu in unifont-bin' package and for Debian lenny/sid it's unifont'. For the other distros I don't know.

Signature · 1 line
Felix Zielcke