From this thread:
http://forums.linuxmint.com/viewtopic.p ... 09#p693374
dagon is right:
that file shouldn't have
at the beginning of it - it should be
Open /etc/grub.d/06_mint_theme as root.
Copy/paste the
original 06_mint_theme file you have been sent.
Save it.
Then sudo update-grub.
Reboot.
I have just followed my own instructions in that thread - which was for Mint 13 Cinnamon,
applying them to an install of Mint 14 Cinnamon (32-bit).
What I did:
Copied an image (as root) from /home/username/Pictures - linuxmint-splashscreen2.png to /boot/grub
Opened (as root) /etc/grub.d/06_mint_theme
Changed the file to look
exactly like this -
anybody else, of course, would subsitute their own image name in place of linuxmint-splashscreen2.
Code: Select all
#!/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=white/light-gray
EOF
}
# check for usable backgrounds
use_bg=true
if [ "$GRUB_TERMINAL_OUTPUT" = "gfxterm" ] ; then
# for i in {/boot/grub,/usr/share/images/desktop-base}/linuxmint.{png,tga} ; do
for i in {/boot/grub,/usr/share/images/desktop-base}/linuxmint-splashscreen2.{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=white/black
# set color_highlight=white/light-gray
#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
Saved the file.
Open a terminal:
Reboot.
It worked exactly as expected with my grub2 splashscreen image displayed.
Note: I hadn't actually done this prior to today for Mint 14 Cinnamon. I had done it for previous Mint installs, but I just hadn't bothered to do it for Mint 14 Cinnamon until now. But as I said, it worked perfectly.
In the original thread, the section I put in beginning with:
So that section of the file should then look like this - with your image name substituted of course:
is exactly the same as what I have just used today.
Note: I have amended the original "how to" post for clarity. See here:
http://forums.linuxmint.com/viewtopic.p ... d8#p591616