| 
 | 
5#
 
 
 楼主 |
发表于 2021-2-15 17:42:08
|
只看该作者
 
 
 
问题已经解决,我把菜单文件保存为UTF-8就可以了 
 
我的菜单如下: 
 
source $prefix/run/run.cfg 
 
terminal_output gfxterm 
 
loadfont unicode 
 
theme=elegant/theme.txt 
 
timeout=10 
 
default=1 
 
set superusers="AndyChen" 
 
password AndyChen 88888888 
 
menuentry "1.启动 WIN10 OS A"   --class windows  --hotkey=1  --users "" { 
    if search --file --set --no-floppy /efi/WIN10_A_CHILD/bootmgfw.efi; then 
            chainloader /efi/WIN10_A_CHILD/bootmgfw.efi; 
    fi 
} 
 
menuentry "2.启动 WIN10 OS B AUTO RESTORE"   --class windows  --hotkey=2  --unrestricted { 
    if search -n -s -f /VHD/CHILD.1; then 
        if search --file --set --no-floppy /efi/WIN10_B_CHILD1/bootmgfw.efi; then 
            chainloader /efi/WIN10_B_CHILD1/bootmgfw.efi; 
        fi 
    elif search -n -s -f /VHD/CHILD.2; then 
        if search --file --set --no-floppy /efi/WIN10_B_CHILD2/bootmgfw.efi; then 
            chainloader /efi/WIN10_B_CHILD2/bootmgfw.efi; 
        fi 
    fi 
} 
 
menuentry "3.启动 WINPE"   --class windows  --hotkey=3  --users "" { 
    if search --file --set --no-floppy /efi/WINPE/bootmgfw.efi; then 
        chainloader /efi/WINPE/bootmgfw.efi; 
    fi 
} 
 |   
 
 
 
 |