[1] 首先需要安装一个工具,可以把普通的图片转换为grub可以支持的格式:
apt-get install imagemagick
[2] 然后转换图片的文件格式,以便让grub支持,假设此时需要转换的图片文件名为splash.png
convert -resize 640x480 -colors 14 splash.png splash.xpm && gzip splash.xpm
[3] 现在还要做一些准备工作,把图片的权限设置一下,然后放入相应的文件夹中
chmod 644 splash.xpm.gz
mkdir /boot/grub/images
cp splash.xpm.gz /boot/grub/images/
[4] 文件准备好了,现在需要修改grub的某些参数设置,以便让grub支持SplashImage
vim menu.lst
splashimage=(hd0,0)/boot/grub/images/splash.xpm.gz