-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathipxe
44 lines (37 loc) · 1.31 KB
/
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
#!ipxe
:menu
menu Choose item:
item local Run install-debian script
item single-disk Debian Installer using preseeding (single disk /dev/sda)
item raid1 Debian Installer using preseeding (raid-1 /dev/sd{a,b})
item raid10 Debian Installer using preseeding (raid-10 /dev/sd{a,b,c,d})
item netboot.xyz Boot menu from http://netboot.xyz
item shell iPXE shell
choose option
iseq ${option} single-disk && goto preseed ||
iseq ${option} raid1 && goto preseed ||
iseq ${option} raid10 && goto preseed ||
goto ${option}
:local
imgfree
set URL https://github.com/vstavrinov/install-debian/releases/latest/download/
iseq ${platform} efi && set initrd initrd=initrd.img ||
kernel ${URL}vmlinuz ${initrd} boot=live fetch=${URL}filesystem.squashfs username=root ip=frommedia
initrd ${URL}initrd.img
boot
:preseed
imgfree
set url http://deb.debian.org/debian/dists/stable/main/installer-amd64/current/images/netboot/debian-installer/amd64
set preseed_url https://raw.githubusercontent.com/vstavrinov/install-debian/master/preseed-
kernel ${url}/linux initrd=initrd.gz auto=true priority=critical preseed/url=${preseed_url}${option}.cfg
initrd ${url}/initrd.gz
boot || goto error
:netboot.xyz
chain --autofree http://boot.netboot.xyz || goto error
:shell
shell
goto menu
:error
echo Something went wrong...
prompt Press any key to continue.
goto menu