|
本帖最后由 mygamexxx 于 2025-2-11 12:44 编辑
专用的,专门用于网启,用ipxe.efi、ipxe.bios可以正常网启。wimboot来自https://github.com/grub4dos/wimboot/releases/tag/test2
#!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
# kernel ${s_boot}/wimboot
initrd ${s_boot}/${wbm} ${wbm}
initrd ${s_boot}/bcdpe 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
|
|