forked from netbootxyz/netboot.xyz-custom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcustom.ipxe
42 lines (35 loc) · 1.01 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
#!ipxe
###
### netboot.xyz-custom menu
###
# set boot domain
set custom_root_domain netboot.members.unit1.farsetlabs.org.uk
:custom
clear custom_choice
menu Custom Menu
item --gap Custom menu
item legacy ${space} Legacy PXELINUX.0 Boot Menu
item ltsp ${space} boot LTSP
item dos ${space} Legacy DOS Liveboot Menu
item open_bsd ${space} OpenBSD 5.5 amd64 Installer Menu
choose custom_choice || goto custom_exit
echo ${cls}
goto ${custom_choice}
goto custom_exit
:legacy
set 210:string tftp://${custom_root_domain}/
chain ${210:string}pxelinux.0 || goto custom_exit
:ltsp
echo Boot LTSP
kernel tftp://${custom_root_domain}/ltsp/ltsp-ipxe.lkrn
initrd tftp://${custom_root_domain}/ltsp/ltsp.ipxe
:dos
echo Legacy DOS Liveboot Menu...
chain https://raw.githubusercontent.com/${github_user}/netboot.xyz-custom/master/dos.ipxe || goto custom
:open_bsd
echo OpenBSD 5.5 amd64 Installer Menu...
kernel tftp://${custom_root_domain}/pxechain.com
initrd tftp://${custom_root_domain}/openbsd/5.5/pxeboot.amd64
:custom_exit
chain utils.ipxe
exit