From: Bruce Dubbs <bruce.dubbs@gmail.com>
To: grub-devel@gnu.org
Subject: Customization of GRUB2
Date: Tue, 01 Dec 2009 14:20:01 -0600 [thread overview]
Message-ID: <4B157A71.5060402@gmail.com> (raw)
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.
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
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
next reply other threads:[~2009-12-01 20:20 UTC|newest]
Thread overview: 32+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-01 20:20 Bruce Dubbs [this message]
2009-12-01 20:23 ` Customization of GRUB2 Vladimir 'φ-coder/phcoder' Serbinenko
2009-12-01 20:55 ` Bruce Dubbs
2009-12-01 22:04 ` Vladimir 'φ-coder/phcoder' Serbinenko
2009-12-04 21:25 ` Robert Millan
2009-12-04 22:12 ` Seth Goldberg
2009-12-01 22:13 ` Vladimir 'φ-coder/phcoder' Serbinenko
2009-12-01 23:36 ` Bruce Dubbs
2009-12-03 1:29 ` grub.info Bruce Dubbs
2009-12-03 1:36 ` grub.info Seth Goldberg
2009-12-03 11:37 ` grub.info Vladimir 'φ-coder/phcoder' Serbinenko
2009-12-29 4:27 ` grub.info Bruce O. Benson
2009-12-29 5:04 ` grub.info Bruce Dubbs
2009-12-29 5:27 ` grub.info Bruce O. Benson
2009-12-29 15:37 ` grub.info Bruce Dubbs
2009-12-30 2:39 ` grub.info Bruce O. Benson
2009-12-30 10:43 ` grub.info Felix Zielcke
2009-12-31 11:27 ` grub.info Vladimir 'φ-coder/phcoder' Serbinenko
2009-12-30 18:28 ` grub.info Vladimir 'φ-coder/phcoder' Serbinenko
2009-12-30 23:35 ` grub.info Bruce O. Benson
2009-12-30 23:50 ` grub.info Bruce Dubbs
2009-12-31 0:30 ` grub.info Bruce O. Benson
2009-12-31 11:25 ` grub.info Vladimir 'φ-coder/phcoder' Serbinenko
2009-12-31 18:04 ` grub.info Bruce O. Benson
2009-12-31 23:01 ` grub.info richardvoigt
2010-01-01 12:18 ` grub.info Robert Millan
2010-01-02 7:43 ` grub.info Bruce O. Benson
2010-01-03 16:22 ` grub.info Robert Millan
2009-12-31 11:47 ` grub.info Vladimir 'φ-coder/phcoder' Serbinenko
2009-12-01 21:49 ` Customization of GRUB2 Seth Goldberg
2009-12-01 22:03 ` Vladimir 'φ-coder/phcoder' Serbinenko
2009-12-04 21:30 ` Robert Millan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4B157A71.5060402@gmail.com \
--to=bruce.dubbs@gmail.com \
--cc=grub-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.