forked from netbootxyz/netboot.xyz-custom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.ipxe
65 lines (57 loc) · 2.35 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
#!ipxe
###
### netboot.xyz-custom menu example
###
:custom
clear custom_choice
menu This is a Test Menu
item --gap This is the first sub menu
item option_one ${space} Loading a kernel and initrd
item option_two ${space} Loading an ISO
item --gap This is a second sub menu
item deb_install_vm-host2 ${space} Install vm-host2 - Debian 12 (bookworm)
item deb_install_vm-host3 ${space} Install vm-host3 - Debian 12 (bookworm)
item deb_install_vm-host4 ${space} Install vm-host4 - Debian 12 (bookworm)
choose custom_choice || goto custom_exit
echo ${cls}
goto ${custom_choice}
goto custom_exit
:option_one
kernel http://path.to/vmlinuz
initrd http://path.to/initrd
imgargs vmlinuz put_kernel_img_args_here
boot || goto custom_exit
:option_two
kernel https://boot.netboot.xyz/memdisk raw iso
initrd http://path.to/iso
boot || goto custom_exit
:option_three
echo Chains into another menu...
chain https://raw.githubusercontent.com/${github_user}/netboot.xyz-custom/master/custom1.ipxe || goto custom
:deb_install_vm-host2
imgfree
kernel http://ftp.debian.org/debian/dists/bookworm/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux auto=true priority=critical vga=788 initrd=initrd.magic preseed/url=http://10.10.255.254/vm-host2.cfg netcfg/disable_autoconfig
initrd http://ftp.debian.org/debian/dists/bookworm/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
echo
echo MD5sums:
md5sum linux initrd.gz
boot
:deb_install_vm-host3
imgfree
kernel http://ftp.debian.org/debian/dists/bookworm/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux auto=true priority=critical vga=788 initrd=initrd.magic preseed/url=http://10.10.255.254/vm-host3.cfg netcfg/disable_autoconfig
initrd http://ftp.debian.org/debian/dists/bookworm/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
echo
echo MD5sums:
md5sum linux initrd.gz
boot
:deb_install_vm-host4
imgfree
kernel http://ftp.debian.org/debian/dists/bookworm/main/installer-amd64/current/images/netboot/debian-installer/amd64/linux auto=true priority=critical vga=788 initrd=initrd.magic preseed/url=http://10.10.255.254/vm-host4.cfg netcfg/disable_autoconfig
initrd http://ftp.debian.org/debian/dists/bookworm/main/installer-amd64/current/images/netboot/debian-installer/amd64/initrd.gz
echo
echo MD5sums:
md5sum linux initrd.gz
boot
:custom_exit
chain utils.ipxe
exit