forked from netbootxyz/netboot.xyz-custom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom.ipxe
51 lines (45 loc) · 1.85 KB
/
custom.ipxe
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!ipxe
###
### Torpedro custom menu
###
:custom
clear custom_choice
menu Windows PE
item --gap Boot Selector
item hirens ${space} Hirens
item hirensiso ${space} Hirens ISO
item veeam_dellw ${space} Veeam DellW
choose custom_choice || goto custom_exit
echo ${cls}
goto ${custom_choice}
goto custom_exit
:hirens
set source hirens
imgfree
kernel http://${boot_domain}/wimboot
initrd -n bootmgr ${win_base_url}/${win_arch}/${source}/bootmgr bootmgr ||
initrd -n bootmgr.efi ${win_base_url}/${win_arch}/${source}/bootmgr.efi bootmgr.efi ||
initrd -n bcd ${win_base_url}/${win_arch}/${source}/boot/bcd bcd ||
initrd -n bcd ${win_base_url}/${win_arch}/${source}/Boot/BCD bcd ||
initrd -n boot.sdi ${win_base_url}/${win_arch}/${source}/boot/boot.sdi boot.sdi ||
initrd -n boot.sdi ${win_base_url}/${win_arch}/${source}/Boot/boot.sdi boot.sdi ||
initrd -n boot.wim ${win_base_url}/${win_arch}/${source}/sources/boot.wim boot.wim
boot || goto custom_exit
:hirensiso
sanboot --no-describe --drive 0x80 http://192.168.1.221:8030/HBCD_PE_x64.iso || goto custom_exit
boot || goto custom_exit
:veeam_dellw
set source DellW
imgfree
kernel http://${boot_domain}/wimboot
initrd -n bootmgr ${win_base_url}/${win_arch}/${source}/bootmgr bootmgr ||
initrd -n bootmgr.efi ${win_base_url}/${win_arch}/${source}/bootmgr.efi bootmgr.efi ||
initrd -n bcd ${win_base_url}/${win_arch}/${source}/boot/bcd bcd ||
initrd -n bcd ${win_base_url}/${win_arch}/${source}/Boot/BCD bcd ||
initrd -n boot.sdi ${win_base_url}/${win_arch}/${source}/boot/boot.sdi boot.sdi ||
initrd -n boot.sdi ${win_base_url}/${win_arch}/${source}/Boot/boot.sdi boot.sdi ||
initrd -n boot.wim ${win_base_url}/${win_arch}/${source}/sources/boot.wim boot.wim
boot || goto custom_exit
:custom_exit
echo Boot failed. Returning to menu
clear menu