|
本帖最后由 lhb9900 于 2020-1-1 10:27 编辑
当第一个ISO光盘里的GRUBFM用MAP启动第二个硬盘里ISO光盘PE时,第二个硬盘里ISO光盘(微软)bootx64.efi始终还是跳到第一个ISO光盘里找菜单来启动,导至始终不能启动第二个光盘的PE,这个怎么解决 , 用map --mem也是一样问题
if [ 'efi' == $grub_platform -a "$grub_cpu" == "x86_64" ]; then
menuentry "(64)用map直接启动$grub_file" --hotkey="${i}" --class iso{
echo (正在后台加载文件,请等待。。)
map $grub_file
}
fi
if [ 'efi' == $grub_platform -a "$grub_cpu" == "i386" ]; then
menuentry "(32)用map直接启动$grub_file" --hotkey="${i}" --class iso{
echo (正在后台加载文件,请等待。。)
map $grub_file
}
fi
用他的 [url]http://bbs.wuyou.net/forum.php?mod=viewthread&tid=414814&extra=page%3D2[/url] 直接闪退
regexp --set=imgboot_file '(/.*)' "$grub_file"
if [ 'efi' == $grub_platform -a "$grub_cpu" == "x86_64" ]; then
menuentry "用imgboot64.efi直接启动${imgboot_file}(CentOS尚不支持)" --hotkey="${i}" --class iso{
echo (正在后台加载文件,请等待。。)
chainloader ($root)/Boot/grub/imgboot.efi -dev auto -file ${imgboot_file}
}
fi
if [ 'efi' == $grub_platform -a "$grub_cpu" == "i386" ]; then
menuentry "用imgboot32.efi直接启动${imgboot_file}(CentOS尚不支持)" --hotkey="${i}" --class iso{
echo (正在后台加载文件,请等待。。)
chainloader ($root)/Boot/grub/imgboot32.efi -dev auto -file ${imgboot_file}
}
fi
if [ 'efi' == $grub_platform -a "$grub_cpu" == "x86_64" ]; then
menuentry "(64)用map直接启动$grub_file" --hotkey="${i}" --class iso{
echo (正在后台加载文件,请等待。。)
map $grub_file
}
fi
if [ 'efi' == $grub_platform -a "$grub_cpu" == "i386" ]; then
menuentry "(32)用map直接启动$grub_file" --hotkey="${i}" --class iso{
echo (正在后台加载文件,请等待。。)
map $grub_file
}
fi
相同的环境用下面却能启动
loopback isoloop "$grub_file"
menuentry "[w]用wimboot启动ISO内的WIM文件" --hotkey="w" --class iso{
echo (正在查找ISO内的WIM启动文件,请等待。。即将在菜单末尾列出WIM启动文件)
for loopwim in (isoloop)/*/*.WIM (isoloop)/*/*.wim; do
if ! test -e $loopwim; then continue; fi
if [ 'efi' == $grub_platform -a "$grub_cpu" == "x86_64" ]; then
menuentry "[6]用wimbootx64启动(EFI)$loopwim" --hotkey="6" --class wim{
echo (正在后台加载文件,请等待。。)
wimboot @:boot.wim:${loopwim} @:bootmgfw.efi:($root)/Boot/cdboot64.efi @:bcd:($root)/Boot/cdbcd @:boot.sdi:($root)/Boot/boot.sdi
}
fi
if [ 'efi' == $grub_platform -a "$grub_cpu" == "i386" ]; then
menuentry "[3](EFI)用wimbootx32启动$loopwim" --hotkey="3" --class wim{
echo (正在后台加载文件,请等待。。)
wimboot @:boot.wim:${loopwim} @:bootmgfw.efi:($root)/Boot/cdboot32.efi @:bcd:($root)/Boot/cdbcd @:boot.sdi:($root)/Boot/boot.sdi
}
fi
if [ "$grub_platform" = "pc" ]; then
menuentry "(BIOS)用wimboot启动$loopwim" --hotkey="b" --class wim{
echo (正在后台加载文件,请等待。。)
set enable_progress_indicator=1;
loopback wimboot ${grub_wimboot};
linux16 (wimboot)/wimboot gui;
initrd16 newc:bootmgr:(wimboot)/bootmgr \
newc:bootmgr.exe:(wimboot)/bootmgr.exe \
newc:bcd:(wimboot)/bcd \
newc:boot.sdi:(wimboot)/boot.sdi \
newc:boot.wim:$loopwim;
}
fi;
done
}
|
|