修改Linux(debian12) grup2 启动项界面背景图的方式

修改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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值