|
menuentry '正常啟動(Windows)' --unrestricted --hotkey="w" --class windows {
search --file --set=nt6 --no-floppy /bootmgr;
search --file --set=nt5 --no-floppy /ntldr;
search --file --set=efi --no-floppy /EFI/Microsoft/Boot/bootmgfw.efi;
if [ "$grub_platform" = "efi" ] -a [ -n "${efi}" ];
then
chainloader (${efi})/EFI/Microsoft/Boot/bootmgfw.efi
if [ "$grub_platform" = "pc" ] -a [ -n "${nt6}" ];
then
chainloader (${nt6})/bootmgr
fi;
if [ "$grub_platform" = "pc" ] -a [ -n "${nt5}" ];
then
chainloader (${nt5})/ntldr
fi;
else
echo '沒有找到Windows'
sleep --verbose 5
fi;
}
我瞎写的,没验证
|
|