Bug#477791: grub: Wrong splash image path construction

Petter Reinholdtsen pere at hungry.com
Sat May 17 17:44:33 UTC 2008


tags 477791 + patch
thanks

This patch solve the issue, but making sure to use the path to
/boot/grub/ relative to the grub "root" partition, in this case
/boot/, making the splashimage entry show up as
"(hd0,0)/grub/splash.xpm.gz".

diff -u grub-0.97/debian/update-grub grub-0.97/debian/update-grub
--- grub-0.97/debian/update-grub
+++ grub-0.97/debian/update-grub
@@ -755,7 +755,8 @@

 echo -n "Searching for splash image ... " >&2
 current_splash=`grep '^splashimage=' ${menu_file} || true`
-splashimage_path="splashimage=${grub_root_device}${grub_dir##${kernel_dir}}/splash.xpm.gz"
+grub_dir_rel=`make_system_path_relative_to_its_root $grub_dir`
+splashimage_path="splashimage=${grub_root_device}/${grub_dir_rel##${kernel_dir}}/splash.xpm.gz"
 if [ `sed -e "/^$start/,/^$end/d" $menu_file | grep -c '^splashimage='` != "0" ] ; then
        #checks for splashscreen defined outside the autoupdated part
        splashimage=$(grep '^splashimage=' ${menu_file})

Please get this fix into Lenny.

Happy hacking,
-- 
Petter Reinholdtsen





More information about the Pkg-grub-devel mailing list