|

楼主 |
发表于 2021-12-4 17:00
|
显示全部楼层
对于grub4dos的菜单\menu.lst菜单节选:
graphicsmode -1 640:800 480:600 24:32 || graphicsmode -1 -1 -1 24:32
#foreground FFFFFF
#background 0000AD
find --ignore-floppies --set-root /boot/grub/FONT_CN6500.GZ
font /boot/grub/FONT_CN6500.GZ
splashimage /boot/grub/xxx.bmp
xxx.bmp就是800*600*256色的bmp背景图,前面那个#字符号是注释的意思,有#的语句不会被执行要去掉,你把图片放到\boot\grub\目录下,800*600分辨率的,图片你自己找。
grub2背景图分辨率最好是1024x768x256色的分辨率的jpeg背景图,以保证较好的兼容性,放在/boot/grub2/目录下面。
\boot\grub2\grubbios.cfg和\boot\grub2\grub.cfg菜单节选:
set locale_dir=/boot/grub2/locale
set lang=zh_CN
loadfont /boot/grub2/fonts/unicode.pf2
set gfxterm_font=unicode
set gfxmode=auto,800x600,1024x768
set gfxpayload=keep
terminal_output gfxterm
insmod gfxterm_background
background_image /boot/grub2/xxx.jpg
我对于中文字体和图片没有什么兴趣,因为几秒钟一闪而过,有图片在不同的电脑上可能会有一定的兼容性问题,速度还慢。
批处理运行不会改变你的背景图。
打包给个demo,你自己更换图片吧。
https://liuzhaoyzz.lanzoux.com/b00p50uxe
密码:bbqo |
|