|
查了下grubfm源代码,vhdx好像是用map启动的?
https://gitee.com/a1ive/grub2-fi ... /samples/grubfm.cfg
function menu_vhd_uefi_map
{
vhd -d vhd0;
vhd -p vhd0 "${grub_file}";
map --mem --type=HD --disk vhd0;
echo "[INF] Press any key to continue ...";
getkey;
}
# vhd
elif regexp '^[vV][hH][dD]$' "${name_ext}"; then
if [ "$grub_platform" = "pc" ]; then
menu_vhd_bios_vboot;
elif [ "$grub_platform" = "efi" ]; then
if [ "$grub_cpu" = "x86_64" ]; then
menu_vhd_uefi_map;
fi;
fi; |
|