Bug#612417: GRUB doesn't accept background images with whitespace in filename

Alexander Kurtz kurtz.alex at googlemail.com
Tue Feb 8 12:35:29 UTC 2011


Package: grub-pc
Version: 1.99~rc1-1
Severity: normal

Hi,

since grub-pc 1.99~rc1-1 it should be possible to use background images
with newlines in their filenames[1]: 

   [ Alexander Kurtz ]
   * 05_debian_theme:
     - Make the code for searching for pictures in /boot/grub more readable
       and robust (for example against newlines in the filename).

However, in reality this doesn't seem to work:

	root at alexander:~# cp /usr/share/images/desktop-base/desktop-grub.png /boot/grub/'really nasty
	> file.png'
	root at alexander:~# update-grub
	Generating grub.cfg ...
	test: 145: really: unexpected operator
	Found background image: .background_cache.png
	Found linux image: /boot/vmlinuz-2.6.32-5-686
	Found initrd image: /boot/initrd.img-2.6.32-5-686
	done
	root at alexander:~#

Even if remove the newline and just use a filename with spaces in it,
things break: 

	root at alexander:~# cp /usr/share/images/desktop-base/desktop-grub.png /boot/grub/'slightly less nasty file.png'
	root at alexander:~# update-grub
	Generating grub.cfg ...
	test: 145: really: unexpected operator
	Found background image: .background_cache.png
	Found linux image: /boot/vmlinuz-2.6.32-5-686
	Found initrd image: /boot/initrd.img-2.6.32-5-686
	done
	root at alexander:~#

I will investigate this further. Expect another mail shortly.

Best regards

Alexander Kurtz

[1] http://packages.debian.org/changelogs/pool/main/g/grub2/grub2_1.99~rc1-1/changelog
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part
URL: <http://lists.alioth.debian.org/pipermail/pkg-grub-devel/attachments/20110208/45a6fac6/attachment.pgp>


More information about the Pkg-grub-devel mailing list