|
本帖最后由 nethuan 于 2015-11-23 15:37 编辑
假设本地Windows是HD0
我说明,百度了一天,没找到方法,我承认我很笨。
item --key x exit Exit iPXE and continue BIOS boot这个命令不行,如果主板的启动顺序是从网络启动,退出后又进入菜单,造成循环。
- #!ipxe
- set menu-timeout 16000
- set menu-default w8pe
- isset ${ip} || dhcp
- isset ${next-server} || set next-server 192.168.0.205
- :start
- menu iPXE Boot Menu
- item --gap -- -------------------------------- WINPE TOOL ---------------------------
- item wpeiso 66369 2003 PE IN ISO
- item 0peiso PSEUDO 03 0PE IN ISO
- item w7pe WIN 7x86 PE IN WIM
- item w8pe WIN 8x86 PE IN WIM
- item w81pe WIN 81x86 PE IN WIM
- item w8164pe WIN 81x64 PE IN 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 BIOS Booting
- choose --timeout ${menu-timeout} --default ${menu-default} selected
- goto ${selected}
- :shell
- echo Type 'exit' to go back to the menu.
- shell
- goto start
- :reboot
- reboot
- :exit
- exit
- :wpeiso
- initrd http://${next-server}/iso/TangoPE_NET.ISO
- chain http://${next-server}/memdisk iso raw
- :0peiso
- initrd http://${next-server}/wimboot/PSEUD0PE.ISO
- chain http://${next-server}/wimboot/ISOLINUX/memdisk iso raw
- :w7pe
- kernel http://${next-server}/wimboot/wimboot
- initrd http://${next-server}/wimboot/bootmgr bootmgr
- initrd http://${next-server}/wimboot/bbb bcd
- initrd http://${next-server}/wimboot/boot.sdi boot.sdi
- initrd http://${next-server}/wimboot/WIN786PE.WIM BOOT.WIM
- boot
- goto start
- :w8pe
- kernel http://${next-server}/wimboot/wimboot
- initrd http://${next-server}/wimboot/bootmgr bootmgr
- initrd http://${next-server}/wimboot/BCD BCD
- initrd http://${next-server}/wimboot/BOOT.SDI BOOT.SDI
- initrd http://${next-server}/wimboot/BOOT.WIM BOOT.WIM
- boot
- goto start
- :w81pe
- kernel http://${next-server}/wimboot/wimboot
- initrd http://${next-server}/wimboot/bootmgr bootmgr
- initrd http://${next-server}/wimboot/bbb bcd
- initrd http://${next-server}/wimboot/boot.sdi boot.sdi
- initrd http://${next-server}/wimboot/WIN8186P.WIM BOOT.WIM
- boot
- goto start
- :w81pe64
- kernel http://${next-server}/wimboot/wimboot
- initrd http://${next-server}/wimboot/bootmgr bootmgr
- initrd http://${next-server}/wimboot/bbb bcd
- initrd http://${next-server}/wimboot/boot.sdi boot.sdi
- initrd http://${next-server}/wimboot/WIN8164P.WIM BOOT.WIM
- boot
- goto start
- :failed
- echo Booting failed, dropping to [Shell]
- goto shell
复制代码 |
|