forked from netbootxyz/netboot.xyz-custom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.ipxe
68 lines (51 loc) · 1.52 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#!ipxe
set server_ip 10.10.10.3
set nfs_path /wanulator/live
:custom
clear custom_choice
menu Installation Menu
item --gap Linux
item option_three ${space} WANulator 2.11 .dd memdisk iso
item option_four ${space} WANulator networks with bootif 3
item option_one ${space} wanulator network 3
item option_two ${space} wanulator vmlinuz dd
choose custom_choice || goto custom_exit
echo ${cls}
goto ${custom_choice}
goto custom_exit
:option_three
imgfree
kernel ${memdisk} iso raw
initrd http://10.10.10.3/wanulator/wanulator.dd
boot
:option_four
imgfree
initrd http://10.10.10.3/wanulator/live/casper/initrd.lz
chain http://10.10.10.3/wanulator/live/vmlinuz.lz boot=casper netboot=nfs nfsroot=${server_ip}:wanulator/live/,vers=4,tcp BOOTIF=01-${net0/mac:hexhyp}
boot
:option_one
initrd http://10.10.10.3/wanulator/live/casper/initrd.lz
chain http://10.10.10.3/wanulator/live/vmlinuz.lz boot=casper netboot=nfs nfsroot=${server_ip}:${nfs_path},vers=4,tcp ip=dhcp
boot
:option_two
imgfree
kernel http://10.10.10.3/vmlinuz.lz
module http://10.10.10.3/initrd.lz
imgargs vmlinuz.lz boot=casper fetch=http://10.10.10.3/wanulator.dd
boot
goto custom_exit
:custom_exit
exit
#:option_one
#imgfree
#kernel http://10.10.10.3/vmlinuz.lz
#module http://10.10.10.3/initrd.lz
#imgargs vmlinuz.lz boot=casper fetch=http://10.10.10.3/filesystem.squashfs
#boot
#
#:option_two
#imgfree
#kernel http://10.10.10.3/vmlinuz.lz
#module http://10.10.10.3/initrd.lz
#imgargs vmlinuz.lz boot=casper config fetch=http://10.10.10.3/filesystem.squashfs
#boot