-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcustom.ipxe
133 lines (119 loc) · 6.3 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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
#!ipxe
### RogueScholar iPXE Menu
## SPDX-FileCopyrightText: © 2016–2022, RogueScholar <[email protected]>.
## SPDX-LicenseIdentifier: CC0-1.0
set esc:hex 1b
set cls ${esc:string}[2J
set keybase-ipxe-path https://rscholar.keybase.pub/ipxe
set pmagic-path ${keybase-ipxe-path}/pmagic
set grml-path ${keybase-ipxe-path}/grml64-full
set czilla-path ${keybase-ipxe-path}/clonezilla
cpair --foreground 2 --background 0 0
console --left 40 --right 40 --top 80 --bottom 80 --depth 24 --picture ${keybase-ipxe-path}/background.png --keep
dhcp && echo DHCP network interface configuration succeeded!
echo Connection summary:
ifstat ; route
echo Greetings, wayfaring stranger.
:main
clear choice
menu --name main Select the desired boot environment or system command:
item --menu main --gap -- ---------------- Parted Magic (v2022_11_20) ----------------
item --menu main --key 0x10 --default pmagic ${space} (P)arted Magic amd64 classic+cgz
item --menu main --key 0x0d pmagicnet ${space} Parted (M)agic amd64 netsrc+squashfs
item --menu main --gap -- --------- Grml Live Sid (Build 3819 [2022-06-15]) ----------
item --menu main --key 0x07 grml ${space} (G)rml Full amd64 netboot
item --menu main --key 0x06 grmlnet ${space} Grml (F)ull amd64 httpfetch+squashfs
item --menu main --gap -- ---------------- Clonezilla Live (v20220612) ---------------
item --menu main --key 0x03 czilla ${space} (C)lonezilla amd64 Ubuntu Kinetic netboot
item --menu main --key 0x0c czillanet ${space} C(l)onezilla amd64 Ubuntu Kinetic httpfetch+squashfs
item --menu main --gap -- ---------------------- System Commands ---------------------
item --menu main --key 0x09 shell ${space} Start a new, (i)nteractive iPXE shell
item --menu main --key 0x12 reboot ${space} (R)eboot
item --menu main --key 0x13 poweroff ${space} (S)hutdown
item --menu main --gap -- ------------------------------------------------------------
item --menu main --key 0x18 exit ${space} E(x)it iPXE and continue UEFI boot
item --menu main --gap
item --menu main --gap *** Letters in parentheses select that option when pressed with <Ctrl> ***
choose --menu main --default exit --timeout 300000 --keep choice || goto main
echo ${cls}
goto ${choice} || goto main
:pmagic
echo Downloading Parted Magic image files from ${pmagic-path}...
echo Fetching kernel...
kernel --name bzImage ${pmagic-path}/bzImage?dl=1 initrd=initrd.img initrd=fu.img initrd=m.img initrd=files.cgz edd=on vga=normal
echo Fetching initramfs...
initrd --name initrd.img ${pmagic-path}/initrd.img?dl=1
echo Fetching filesystems...
imgfetch --name fu.img ${pmagic-path}/fu.img?dl=1
imgfetch --name m.img ${pmagic-path}/m.img?dl=1
imgfetch --name files.cgz ${pmagic-path}/files.cgz?dl=1
echo Download summary:
imgstat && sleep 3
echo Booting Parted Magic...
imgexec bzImage || goto main
:pmagicnet
echo Downloading Parted Magic image files from ${pmagic-path}...
echo Fetching kernel...
kernel --name bzImage ${pmagic-path}/bzImage?dl=1 initrd=initrd.img initrd=fu.img initrd=m.img edd=on vga=normal netsrc=wget neturl="${pmagic-path}/pmodules/" netargs="-A index.html"
echo Fetching initramfs...
initrd --name initrd.img ${pmagic-path}/initrd.img?dl=1
echo Fetching filesystems...
imgfetch --name fu.img ${pmagic-path}/fu.img?dl=1
imgfetch --name m.img ${pmagic-path}/m.img?dl=1
echo Download summary:
imgstat && sleep 3
echo Booting Parted Magic...
imgexec bzImage || goto main
:grml
echo Downloading Grml64 Full Sid image files from ${grml-path}...
echo Fetching kernel...
kernel --name vmlinuz ${grml-path}/boot/grml64full_sid/vmlinuz?dl=1 initrd=initrd.img initrd=grml64-full_sid.squashfs boot=live apm=power-off nomce noeject noprompt noblank keyboard=us xkeyboard=us tz=America/Los_Angeles hostname ssh=password
echo Fetching initramfs...
initrd --name initrd.img ${grml-path}/boot/grml64full_sid/initrd.img?dl=1
echo Fetching filesystem...
imgfetch --name grml64-full_sid.squashfs ${grml-path}/live/grml64-full_sid/grml64-full_sid.squashfs?dl=1
echo Download summary:
imgstat && sleep 3
echo Booting Grml64 Full Sid...
imgexec vmlinuz || goto main
:grmlnet
echo Downloading Grml64 Full Sid image files from ${grml-path}...
echo Fetching kernel...
kernel --name vmlinuz ${grml-path}/boot/grml64full_sid/vmlinuz?dl=1 initrd=initrd.img boot=live apm=power-off nomce fetch=${grml-path}/live/grml64-full_sid/grml64-full_sid.squashfs noeject noprompt noblank keyboard=us xkeyboard=us tz=America/Los_Angeles hostname ssh=password
echo Fetching initramfs...
initrd --name initrd.img ${grml-path}/boot/grml64full_sid/initrd.img?dl=1
echo Download summary:
imgstat && sleep 3
echo Booting Grml64 Full Sid...
imgexec vmlinuz || goto main
:czilla
echo Downloading Clonelizza Live image files from ${czilla-path}...
echo Fetching kernel...
kernel --name vmlinuz ${czilla-path}/live/vmlinuz?dl=1 initrd=initrd.img initrd=filesystem.squashfs boot=live union=overlay username=user hostname=kinetic config quiet loglevel=0 noswap edd=on enforcing=0 noeject locales=en_US.UTF-8 keyboard-layouts=us ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" ocs_fontface="Terminus" ocs_fontsize="20x10" net.ifnames=0 splash
echo Fetching initramfs...
initrd --name initrd.img ${czilla-path}/live/initrd.img?dl=1
echo Fetching filesystem...
imgfetch --name filesystem.squashfs ${czilla-path}/live/filesystem.squashfs?dl=1
echo Download summary:
imgstat && sleep 3
echo Booting Clonezilla Live...
imgexec vmlinuz || goto main
:czillanet
echo Downloading Clonelizza Live image files from ${czilla-path}...
echo Fetching kernel...
kernel --name vmlinuz ${czilla-path}/live/vmlinuz?dl=1 initrd=initrd.img boot=live union=overlay username=user hostname=kinetic config quiet loglevel=0 noswap edd=on enforcing=0 noeject locales=en_US.UTF-8 keyboard-layouts=us ocs_live_run="ocs-live-general" ocs_live_extra_param="" ocs_live_batch="no" ocs_fontface="Terminus" ocs_fontsize="20x10" net.ifnames=0 splash noprompt fetch=${czilla-path}/live/filesystem.squashfs
echo Fetching initramfs...
initrd --name initrd.img ${czilla-path}/live/initrd.img?dl=1
echo Download summary:
imgstat && sleep 3
echo Booting Clonezilla Live...
imgexec vmlinuz || goto main
:shell
shell
:reboot
reboot
:poweroff
poweroff
:exit
exit 0
#chain https://raw.githubusercontent.com/${github_user}/netboot.xyz-custom/master/custom1.ipxe || goto custom