forked from netbootxyz/netboot.xyz-custom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.ipxe
105 lines (95 loc) · 3.42 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!ipxe
###
### netboot.xyz-custom menu Genouest
###
:custom
clear custom_choice
set pxe_url http://192.168.1.245:8095
set deb12_url ${pxe_url}/debian/images/12/
set centos7_url ${pxe_url}/centos/images/7.9/
set centos8_url ${pxe_url}/centos/images/8.3/
menu Linux Installers - Current Arch [ ${arch} ]
item --gap Linux Distros:
item debian12 ${space} Debian12
item debian11 ${space} Debian11
item debian11-firmwares ${space} Debian11 with firmwares
item cluster ${space} Cluster Centos7
item efi-debian12 ${space} EFI Debian12
item efi-debian11 ${space} EFI Debian11
item efi-centos8-dl360 ${space} EFI CentOS8 DL360 Cloud
choose menu || goto custom_exit
echo ${cls}
goto ${menu} ||
:debian12
imgfree
echo Booting Debian bookworm installer..
set base-url http://deb.debian.org/debian/dists/bookworm/main/installer-amd64/current/images/netboot/debian-installer/amd64
set preseed-url ${pxe_url}/debian/preseed.cfg
kernel ${base-url}/linux
initrd ${base-url}/initrd.gz
imgargs linux auto=true url=${preseed-url} hostname=unassigned-hostname domain=unassigned-domain
boot
goto custom
:efi-debian12
imgfree
echo Booting Debian bookworm EFI installer...
set base-url http://deb.debian.org/debian/dists/bookworm/main/installer-amd64/current/images/netboot/debian-installer/amd64
set preseed-url ${pxe_url}/debian/efi/preseed.cfg
kernel ${base-url}/linux
initrd ${base-url}/initrd.gz
imgargs linux auto=true url=${preseed-url} hostname=unassigned-hostname domain=unassigned-domain
boot
goto custom
:debian11
imgfree
echo Booting Debian Bullseye installer...
set base-url http://deb.debian.org/debian/dists/bullseye/main/installer-amd64/current/images/netboot/debian-installer/amd64
set preseed-url ${pxe_url}/debian/preseed.cfg
kernel ${base-url}/linux
initrd ${base-url}/initrd.gz
imgargs linux auto=true url=${preseed-url} hostname=unassigned-hostname domain=unassigned-domain
boot
goto custom
:debian11-firmwares
imgfree
echo Booting Debian Bullseye installer...
set base-url http://deb.debian.org/debian/dists/bullseye/main/installer-amd64/current/images/netboot/debian-installer/amd64
set preseed-url ${pxe_url}/debian/preseed.cfg
set firmwares http://cdimage.debian.org/cdimage/unofficial/non-free/firmware/testing/current/firmware.cpio.gz
kernel ${base-url}/linux
initrd ${base-url}/initrd.gz
initrd ${firmwares}
imgargs linux auto=true url=${preseed-url} hostname=unassigned-hostname domain=unassigned-domain
boot
goto custom
:efi-debian11
imgfree
echo Booting Debian Bullseye EFI installer...
set base-url http://deb.debian.org/debian/dists/bullseye/main/installer-amd64/current/images/netboot/debian-installer/amd64
set preseed-url ${pxe_url}/debian/efi/preseed.cfg
set firmwares http://cdimage.debian.org/cdimage/unofficial/non-free/firmware/testing/current/firmware.cpio.gz
kernel ${base-url}/linux
initrd ${base-url}/initrd.gz
initrd ${firmwares}
imgargs linux auto=true url=${preseed-url} hostname=unassigned-hostname domain=unassigned-domain
boot
goto custom
:cluster
imgfree
echo Booting Cluster Centos7
set base https://vault.centos.org/7.9.2009/os/x86_64
set params inst.ks=${pxe_url}/centos/7.9/ks-cluster.cfg
kernel ${centos7_url}/vmlinuz inst.repo=${base} ${params} initrd=initrd.img
initrd ${centos7_url}/initrd.img
boot
goto custom
:efi-centos8-dl360
imgfree
set base http://linuxsoft.cern.ch/centos-vault/8.3.2011/BaseOS/x86_64/os
kernel ${centos8_url}/vmlinuz initrd=initrd.img inst.repo=${base}
initrd ${centos8_url}/initrd.img
boot
goto custom
:custom_exit
chain menu.ipxe
exit