修改Linux(debian12) grup2 启动项界面背景图的方式
默认情况:
在 grub-2.02 中,对基于 Debian 的系统来说,它将按照以下顺序搜索启动背景:
- /etc/default/grub 里的 GRUB_BACKGROUND 行
- 在 /boot/grub/ 里找到的第一个图像(如果发现多张,将以字母顺序排序)
- 在 /usr/share/desktop-base/grub_background.sh 中指定的
- 在 /etc/grub.d/05_debian_theme 里 WALLPAPER 行列出的
常规情况:
将对应图片CP到对应目录,然后执行刷新配置即可正常加载。
m@me:~$ cp 图片/截图/bj.png /boot/grub/
m@me:~$ sudo update-grub2
[sudo] m 的密码:
Generating grub configuration file ...
Found background image: bj.png
Found linux image: /boot/vmlinuz-6.1.0-16-amd64
Found initrd image: /boot/initrd.img-6.1.0-16-amd64
Found linux image: /boot/vmlinuz-6.1.0-15-amd64
Found initrd image: /boot/initrd.img-6.1.0-15-amd64
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
重启查看效果
m@me:~$ reboot