|
|
发表于 2026-8-9 18:19:02
|
显示全部楼层
直接在cfg文件中使用set theme="/boot/grubfm/theme/theme.txt"后不好使啊,还是默认主题(theme.txt确实位于这个位置),有大神能帮忙解决一下吗,谢谢了,下面是cfg的代码
- loadfont ${prefix}/fonts/unicode.xz
- source ${prefix}/lang.sh
- set default=0
- set timeout=10
- set theme="/boot/grubfm/theme/theme.txt"
- # 菜单项 1:微PE V2.3 x64
- menuentry "[01] 微PE V2.3 Windows10(x64)" --hotkey=1 --class wim {
- search -f /boot/WePE_64_V2.3.wim -s root
- set grubfm_file=($root)/boot/WePE_64_V2.3.wim
- configfile ${prefix}/rules/wim/wimboot.sh
- }
- menuentry " [02] 启动 Windows (本地)" --hotkey=2 --class nt6 --class os {
- search -n -s -f /EFI/Microsoft/Boot/bootmgfw.efi
- chainloader /EFI/Microsoft/Boot/bootmgfw.efi
- }
- menuentry " [03] 启动 grub2 文件管理器" --hotkey=3 --class dir {
- grubfm
- }
- menuentry " [04] 重启" --hotkey=4 --class reboot --class os { reboot }
- menuentry " [05] 关机" --hotkey=5 --class halt --class os { halt }
- source ${prefix}/global.sh
复制代码 |
|