From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JTxHI-0002by-Lh for mharc-grub-devel@gnu.org; Tue, 26 Feb 2008 05:43:17 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JTxHE-0002ah-0M for grub-devel@gnu.org; Tue, 26 Feb 2008 05:43:12 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JTxHA-0002ZJ-PX for grub-devel@gnu.org; Tue, 26 Feb 2008 05:43:10 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JTxH8-0002Ym-QU for grub-devel@gnu.org; Tue, 26 Feb 2008 05:43:07 -0500 Received: from victor.unige.ch ([129.194.9.224]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JTxH8-0003n8-Ic for grub-devel@gnu.org; Tue, 26 Feb 2008 05:43:06 -0500 MIME-version: 1.0 Content-transfer-encoding: 7BIT Content-type: text/plain; charset=us-ascii Received: from gismo.pca.it ([129.194.56.110]) by victor.unige.ch (Sun Java(tm) System Messaging Server 6.3-3.01 (built Jul 12 2007; 32bit)) with ESMTPSA id <0JWU00B02DQXXY00@victor.unige.ch> for grub-devel@gnu.org; Tue, 26 Feb 2008 11:42:33 +0100 (MET) Received: by gismo.pca.it (Postfix, from userid 1000) id 9CCC559E86; Tue, 26 Feb 2008 11:42:33 +0100 (CET) From: Luca Capello To: The development of GRUB 2 References: <511f47f50802251806w6ed7e8f3wafd658a2de73cc18@mail.gmail.com> Date: Tue, 26 Feb 2008 11:42:31 +0100 In-reply-to: <511f47f50802251806w6ed7e8f3wafd658a2de73cc18@mail.gmail.com> Message-id: <87ejb0robs.fsf@gismo.pca.it> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-detected-kernel: by monty-python.gnu.org: Solaris 10 (beta) Subject: Re: grub2 doesn't parse .jpeg files X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Feb 2008 10:43:13 -0000 Hi there! On Tue, 26 Feb 2008 03:06:05 +0100, shirish wrote: > I think I know why the .jpg & the .svg files don't work. This is the > section of /boot/grub/grub.cfg > > ### BEGIN /etc/grub.d/05_debian_theme ### > insmod png > if background_image > (hd0,1)/usr/share/images/desktop-base/debblue-1600x1200.png ; then It seems that you've modified the stock /etc/grub.d/05_debian_theme [1]: --8<---------------cut here---------------start------------->8--- # check for usable backgrounds use_bg=false if [ "$GRUB_TERMINAL" = "gfxterm" ] ; then for i in {/usr/share/images/desktop-base,/boot/grub}/debian-blueish-wallpaper-640x480.{png,tga} ; do if bg=`convert_system_path_to_grub_path $i` ; then case ${bg} in *.png) reader=png ;; *.tga) reader=tga ;; *.jpg|*.jpeg) reader=jpeg ;; esac if test -e /boot/grub/${reader}.mod ; then echo "Found Debian background: `basename ${bg}`" >&2 use_bg=true break fi fi done fi --8<---------------cut here---------------end--------------->8--- Since the check is only performed for a specific image either in png or tga format, jpg images are not taken into account. Yesterday night I worked on a solution which enables something more configurable, but I haven't had time to submit upstream yet. Thx, bye, Gismo / Luca Footnotes: [1] http://svn.debian.org/wsvn/pkg-grub/grub2/trunk/debian/grub.d/05_debian_theme?op=file&rev=689&sc=0