|
7#

楼主 |
发表于 2025-2-6 16:36:32
|
只看该作者
本帖最后由 mygamexxx 于 2025-2-6 16:41 编辑
hilsonma大,使用了你的bcd和菜单,现在启动到出BCD时不行,有什么解决办法吗?
#!ipxe
isset ${ip} || dhcp
:start
menu iPXE Boot Menu --${ip}
item --key 1 winpe 1.Boot WinPE 64 (wimboot)
item --key 2 local 2.Boot from local drive
item --key 3 config 3.Configure settings
item --key 4 shell 4.Drop to iPXE shell
item --key 5 reboot 5.Reboot computer
item --key 6 exit 6.Exit iPXE and continue BIOS boot
choose --timeout 10000 selected
goto ${selected}
:shell
echo Type 'exit' to get the back to the menu
shell
goto start
:reboot
reboot
:exit
exit
:config
config
goto start
:winpe
set s_boot http://${next-server}/boot
iseq ${platform} efi && set wbm bootmgfw.efi || set wbm bootmgr.exe
initrd ${s_boot}/${wbm} ${wbm}
initrd ${s_boot}/bcd bcd
initrd ${s_boot}/boot.sdi boot.sdi
initrd ${s_boot}/10pe.wim boot.wim
boot ${s_boot}/wimboot
#从本地硬盘启动
:local
sanboot --no-describe --drive 0x80
:retry
imgfree
prompt Error! press any key to back menu
goto start
|
|