Ok I started fiddling with grub2 as of now, and got almost everything under my hood Things are very much same except the annoying update script
Anyway I tried to set a Background for my grub2 loader. I did the following ..
1. Placed a jpg/png bg in the /usr/share/images/desktop-base
2. After that I edited /boot/grub.d/05_debian_theme scrpit and added the wallpaper entry, I even changed use_bg=true from use_bg=false
3. Next I updated the grub using the loathsome update-grub command.
After reboot the grub is still plain black! What am I doing wrong here ?
Please do shed some light.
Regards
Anyway I tried to set a Background for my grub2 loader. I did the following ..
1. Placed a jpg/png bg in the /usr/share/images/desktop-base
Code:
shashwat@shashwat-desktop:~$ ls /usr/share/images/desktop-base/
Linux.jpg Lucid.png
shashwat@shashwat-desktop:~$
2. After that I edited /boot/grub.d/05_debian_theme scrpit and added the wallpaper entry, I even changed use_bg=true from use_bg=false
Code:
#!/bin/bash -e
source /usr/lib/grub/grub-mkconfig_lib
set_mono_theme()
{
cat << EOF
set menu_color_normal=white/black
set menu_color_highlight=black/white
EOF
}
# check for usable backgrounds
use_bg=true
if [ "$GRUB_TERMINAL_OUTPUT" = "gfxterm" ] ; then
for i in {/boot/grub,/usr/share/images/desktop-base}/Lucid.{png,tga} ; do
if is_path_readable_by_grub $i ; then
bg=$i
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
# set the background if possible
if ${use_bg} ; then
prepare_grub_to_access_device `${grub_probe} --target=device ${bg}`
cat << EOF
insmod ${reader}
if background_image `make_system_path_relative_to_its_root ${bg}` ; then
set color_normal=black/black
set color_highlight=magenta/black
else
EOF
fi
# otherwise, set a monochromatic theme for Ubuntu
if ${use_bg} ; then
set_mono_theme | sed -e "s/^/ /g"
echo "fi"
else
set_mono_theme
fi
3. Next I updated the grub using the loathsome update-grub command.
After reboot the grub is still plain black! What am I doing wrong here ?
Please do shed some light.
Regards