|
本帖最后由 captain_g 于 2017-10-25 12:32 编辑
我的启动脚本,实机测试成功,但我的磁盘是MBR的,可能不适用你的情况:
#!ipxe
set boot-url http://${dhcp-server}
set menu-timeout 12000
set menu-default x64pe
:start
menu iPXE UEFI Boot Menu
item --gap -- -------------------------------- WINPE TOOL ---------------------------
item x64pe Windows ? x64 PE in WIM (Named as PE64.WIM)
item 1064pe Windows 10 x64 PE in WIM (Named as PE1064.WIM)
item --gap -- -------------------------------- Advanced -----------------------------
item --key s shell [S] Drop to iPXE Shell
item --key r reboot [R] Reboot the Computer
item --key x exit [X] Exit iPXE and Continue Booting
choose --timeout ${menu-timeout} --default ${menu-default} selected
goto ${selected}
:shell
echo Type 'goto start' to go back to the menu.
shell
:reboot
reboot
:exit
exit 1
:x64pe
kernel ${boot-url}/BOOT/wimboot
initrd ${boot-url}/BOOT/bootmgfw.efi bootmgfw.efi
initrd ${boot-url}/BOOT/BCD BCD
initrd ${boot-url}/BOOT/BOOT.SDI BOOT.SDI
initrd ${boot-url}/BOOT/PE64.WIM BOOT.WIM
boot || goto failed
goto start
:1064pe
kernel ${boot-url}/BOOT/wimboot
initrd ${boot-url}/EFI/BOOT/bootx64.efi bootx64.efi
initrd ${boot-url}/EFI/MICROSOFT/BOOT/B64 BCD
initrd ${boot-url}/BOOT/BOOT.SDI BOOT.SDI
initrd ${boot-url}/BOOT/PE1064.WIM BOOT.WIM
boot || goto failed
goto start
:failed
echo Booting failed, dropping to [Shell]
goto shell |
|