grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Customization of GRUB2


From: Seth Goldberg
Subject: Re: Customization of GRUB2
Date: Tue, 01 Dec 2009 13:49:07 -0800 (PST)
User-agent: Alpine 2.00 (GSO 1167 2008-08-23)

Hi,

I'm going to make an unpopular suggestion, so feel free to tell me to take a hike, but I think Bruce's question highlights a very important point-- the documentation that we have for GRUB2 at this point is very poor. In order to continue to get new users to use GRUB2, we need quality documentation at least initially written by the people who authored the code. User documentation is at least as important as the multitude of features that are pouring in, and I think we'll see a dramatic uptake of GRUB2 as well as a more-satisfied userbase with comprehensive documentation. Feel free to flame me, but this is my opinion.

 --S


Quoting Vladimir 'φ-coder/phcoder' Serbinenko, who wrote the following on...:

Bruce Dubbs wrote:
I am trying to provide documentation about GRUB2 (1.97.1)
customization for the Linux From Scratch book.  I am having quite a
bit of trouble finding anything describing how to set up a splash
screen directly in grub.cfg.

Could you help us with documenting grub better? Patches against texinfo
manual are welcome
I've looked in info, faqs, the GRUB2 wiki, and google.  I do find
references to /etc/grub.d/05_debian_theme, but that is an indirect way
of customizing grub.cfg.  I am trying to show our LFS users how to
edit grub.cfg directly.

Right now I have tried a reasonably simple configuration:

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

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

if background_image=/grub/lfs-logo2.png ; then
There is a space between background_imge and filename, not '='
if background_image /grub/lfs-logo2.png ; then
    set menu_color_normal=red/black
    set menu_color_highlight=green/black
else
    set menu_color_normal=cyan/blue
    set menu_color_highlight=white/blue
fi

#menuentrys
...
----------------

The primary function of GRUB, booting the OS, works great. However
the background image does not display.

Dropping to the command line shows that gfxterm is enabled, the font
is loaded, and the background image is loaded.

terminfo shows VT100.

Reloading the background image from the command line brings up the
image and returning to the menu then works with the image now
displayed, although I can not find any documentation or examples on
how to control the menu frame or menu items.

I hesitate to claim that the problem I am having is a bug in the code,
but I do wonder if the problem is in my configuration or the code.

Any insights or pointers to documentation of customization or examples
of grub.cfg will be much appreciated.

  -- Bruce



_______________________________________________
Grub-devel mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/grub-devel



--
Regards
Vladimir 'φ-coder/phcoder' Serbinenko




reply via email to

[Prev in Thread] Current Thread [Next in Thread]