1.在windows上安装grub2 for windows到ntfs格式u盘。
教程地址: https://www.aioboot.com/en/install-grub2-from-windows/
2.把grub4dos解压到grub文件夹。
4.配置好grub.cfg。使用grub2引导grub4dos再引导winpe。嘿嘿。
#Sample GRUB2.0 configuration file
#环境变量,用于选择菜单保存,注意对应菜单里需加入函数savedefault
if [ -s $prefix/grubenv ]; then
load_env
set default="${saved_entry}"
else
set default=0
fi
function savedefault {
if [ -s $prefix/grubenv ]; then
saved_entry="${chosen}"
save_env saved_entry
fi
}
#Boot automatically after xx secs.
if keystatus --shift; then
set timeout=30
else
set timeout=5
fi
#By default, boot the first entry.
set default=0
#Fallback to the second entry.
set fallback=1
# auto 640x480 800x600 1024x768 efont.pf2