From: Luca Capello <luca@pca.it>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: grub2 doesn't parse .jpeg files
Date: Tue, 26 Feb 2008 11:42:31 +0100 [thread overview]
Message-ID: <87ejb0robs.fsf@gismo.pca.it> (raw)
In-Reply-To: <511f47f50802251806w6ed7e8f3wafd658a2de73cc18@mail.gmail.com>
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
next prev parent reply other threads:[~2008-02-26 10:43 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-02-26 2:06 grub2 doesn't parse .jpeg files shirish
2008-02-26 2:21 ` Pavel Roskin
2008-02-28 10:22 ` Robert Millan
2008-02-26 10:42 ` Luca Capello [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-02-25 13:45 shirish
2008-02-25 13:53 ` Bean
2008-02-28 10:22 ` 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=87ejb0robs.fsf@gismo.pca.it \
--to=luca@pca.it \
--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.