forked from netbootxyz/netboot.xyz-custom
-
Notifications
You must be signed in to change notification settings - Fork 0
/
custom.ipxe
52 lines (40 loc) · 1.09 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
#!ipxe
###
### netboot.xyz-custom menu
###
## wget https://boot.netboot.xyz/systemrescue.ipxe
goto ${menu} ||
:live_menu
set os System Rescue
set os_arch ${arch}
iseq ${os_arch} x86_64 && set os_arch amd64 ||
iseq ${os_arch} i386 && set os_arch i686 ||
menu ${os}
set ipparam BOOTIF=${netX/mac} ip=dhcp net.ifnames=0
set rootpass ${mac:hexraw}
item --gap ${os} Versions
iseq ${os_arch} amd64 && item 11.0_${os_arch} ${space} ${os} 11.0 [rootpass=${rootpass}] ||
iseq ${os_arch} i686 && item 9.03_${os_arch} ${space} ${os} 9.03 [rootpass=${rootpass}] ||
choose live_version || goto live_exit
goto ${live_version}
:11.0_amd64
set url ${live_endpoint}/asset-mirror/releases/download/11.00-dd0f3246/
goto boot
:9.03_i686
set url ${live_endpoint}/asset-mirror/releases/download/9.03-0f19cc5c/
goto boot
:boot
imgfree
kernel ${url}vmlinuz archisobasedir=sysresccd ${ipparam} archiso_http_srv=${url} rootpass=${rootpass} nofirewall initrd=initrd.magic ${cmdline}
initrd ${url}initrd
boot
:live_exit
clear menu
exit 0
:start
echo CUSTOM PASS=
echo ${mac:hexraw}
sleep 2
goto custom_exit
:custom_exit
exit 0