|
谢谢,学到很多东西。贴个我自己的配置文件
#!ipxe
#set menu-timeout 8000
set menu-default 0pe
isset ${ip} || dhcp
isset ${next-server} || set next-server 192.168.1.61
:start
menu iPXE Boot Menu
item --gap -- --------------------------------- PE --------------------------------
item winre BOOT Win7 RE (wimboot)
item 0pe BOOT Pseudo 0PE (iso)
item TangoPE BOOT Tango PE (iso)
item --gap -- -------------------------------- TOOL --------------------------------
item add11h Acronis Disk Director Suite 11 Home
item ATI_ES_9.1 Acronis TureImage with UR
item ati12 Acronis TureImage 12
item memtest Memtest86
item --gap -- ---------------------------- Advanced options -----------------------
item --key c config Configure settings -- c
item --key p pxelinux Load PXELinux menu -- p
item shell Drop to iPXE shell
item reboot Reboot computer
item --key x exit Exit iPXE and continue BIOS boot -- x
choose --timeout ${menu-timeout} --default ${menu-default} selected
goto ${selected}
:shell
echo Type 'exit' to get the back to the menu
shell
goto start
:failed
echo Booting failed, dropping to shell
goto shell
:reboot
reboot
:exit
exit
:config
config
goto start
:pxelinux
chain http://${next-server}/pxelinux.0 || goto failed
goto start
:memtest
chain http://${next-server}/img/memtestp.bin || goto failed #http://boot.ipxe.org/memtest.bin
goto start
:add11h
initrd http://${next-server}/acronis/ADD11H.IMG
chain http://${next-server}/grub/memdisk || goto failed
:ATI_ES_9.1
initrd http://${next-server}/acronis/Acronis_True_Image_Enterprise_Server_9.1_Universal_Restore.img
chain http://${next-server}/grub/memdisk || goto failed
:ati12
kernel http://${next-server}/acronis/trueimage12/kernel.dat quiet vga=803 ramdisk_size=40000
initrd http://${next-server}/acronis/trueimage12/ramdisk.dat
boot || goto failed
goto start
:0pe
initrd http://${next-server}/winpe.ISO
#chain http://${next-server}/grub/memdisk iso raw
chain http://${next-server}/grub/grub.exe --config-file="pxe keep;map --mem (pd)/grub/winvblock.img (fd0);map (rd)+1 (0xff);map --hook;chainloader (0xff)"
:TangoPE
initrd http://${next-server}/ISO/TangoPE_NET.ISO
chain http://${next-server}/memdisk iso raw
:winre
kernel http://${next-server}/ipxe/wimboot #http://git.ipxe.org/releases/wimboot/wimboot-latest.zip
initrd http://${next-server}/ipxe/BOOTMGR bootmgr
initrd http://${next-server}/ipxe/BCD BCD
initrd http://${next-server}/Boot/boot.sdi boot.sdi
initrd http://${next-server}/winpe0.wim boot.wim
boot || goto failed
goto start |
|