From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NFZCm-00032n-EQ for mharc-grub-devel@gnu.org; Tue, 01 Dec 2009 15:20:12 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NFZCj-00032B-Lq for grub-devel@gnu.org; Tue, 01 Dec 2009 15:20:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NFZCe-00030Y-Cv for grub-devel@gnu.org; Tue, 01 Dec 2009 15:20:08 -0500 Received: from [199.232.76.173] (port=50524 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NFZCe-00030S-6B for grub-devel@gnu.org; Tue, 01 Dec 2009 15:20:04 -0500 Received: from mail-yx0-f191.google.com ([209.85.210.191]:49600) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NFZCe-0004RF-4b for grub-devel@gnu.org; Tue, 01 Dec 2009 15:20:04 -0500 Received: by yxe29 with SMTP id 29so6473783yxe.14 for ; Tue, 01 Dec 2009 12:20:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=Ng6NN2J0ROuYeTe5qg13+W8KJcm7RwiSKagcWt6CRNM=; b=WYgdwANtHKK4rqhAXZSi3vFXh30byjO5HnFo6Bjo26lpzFYq77BZXz4grynffSWJuy hRGMNFkQPJXyd2AOZWmS1+jWE3s9xNMb+crhFz8ml/pftjHSvUZ3t/m8gsw8RzmdO/dY Ty7l22KcpTl3cOhUzeXRO6a1mU+HWQ+ER04xk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=xXSi8XJHTkVDh9oUL/T0o6EPE6XIiqJSXdZ4tmeXR320m19qpijXWZsGyn4VZGMP+w +Cf772vc6ccYeeGA++Blq3ClXdNxGNRy2eVlM9V6gaOnOo4TBk/Zhku7ky8eISVIrYja mp/6ouTfg6SfY5Ux0ayWOC4FZTmo7YAY/Ahek= Received: by 10.101.132.22 with SMTP id j22mr2617907ann.6.1259698803115; Tue, 01 Dec 2009 12:20:03 -0800 (PST) Received: from ?192.168.0.75? (cpe-66-69-97-231.satx.res.rr.com [66.69.97.231]) by mx.google.com with ESMTPS id 8sm204900yxb.7.2009.12.01.12.20.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 01 Dec 2009 12:20:02 -0800 (PST) Message-ID: <4B157A71.5060402@gmail.com> Date: Tue, 01 Dec 2009 14:20:01 -0600 From: Bruce Dubbs User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.16) Gecko/20080722 SeaMonkey/1.1.11 MIME-Version: 1.0 To: grub-devel@gnu.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Customization of GRUB2 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Dec 2009 20:20:10 -0000 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