Skip to content

Commit 67ed450

Browse files
authored
Merge pull request #1296 from flyingcircusio/ctheune-adjust-ipxe-menu
ipxe boot/installer - add 24.11 and use more flexible settings editor
2 parents 16d21f3 + 3802f16 commit 67ed450

File tree

2 files changed

+36
-15
lines changed

2 files changed

+36
-15
lines changed

nixos/roles/router/flyingcircus.ipxe

+23-14
Original file line numberDiff line numberDiff line change
@@ -6,26 +6,27 @@ set menu-timeout 30000
66

77
iseq ${platform} efi && set menu-default local_efi || set menu-default local_bios
88

9-
set location whq
9+
set installer_url https://hydra.flyingcircus.io/job/flyingcircus/fc-24.11-production/images.netboot/latest/download/netboot.ipxe
1010

1111
# Lets assume network has already been initialized from our ipxe bootstrap script and we'd like to save time here.
1212
# dhcp || error
1313

1414
:start
1515
menu Flying Circus boot menu
1616
item --gap -- --- Info ---
17-
item --gap -- Serial: ${serial}
18-
item --gap -- MAC: ${mac}
19-
item --gap -- Location: ${location}
20-
item --gap -- Platform: ${platform}
17+
item --gap -- Serial: ${serial}
18+
item --gap -- MAC: ${mac}
19+
item --gap -- Platform: ${platform}
2120
item --gap -- --- Boot ---
2221
item local_bios Boot machine from local disk (BIOS)
2322
item local_efi Boot machine from local disk (EFI)
2423
item netboot Launch netboot.xyz (various live images and tools)
2524
item --gap -- --- Install ---
26-
item install_nixos_20_09 Boot NixOS 20.09 install image
27-
item install_nixos_21_05 Boot NixOS 21.05 install image
28-
item install_nixos_dev Boot NixOS development install image
25+
item --gap -- Installer: ${installer_url}
26+
item install_nixos_24_11 Set installer to NixOS 24.11 install image
27+
item install_nixos_dev Set installer to NixOS development install image
28+
item install_edit_url Manually edit installer URL
29+
item install_start Boot selected installer
2930
item --gap -- --- Other ---
3031
item --key x exit Exit iPXE and continue BIOS boot
3132
item shell Drop to iPXE shell
@@ -34,14 +35,22 @@ choose --timeout ${menu-timeout} --default ${menu-default} selected || goto canc
3435
set menu-timeout 0
3536
goto ${selected}
3637

37-
:install_nixos_20_09
38-
boot https://hydra.flyingcircus.io/job/flyingcircus/fc-20.09-production/images.netboot/latest/download/netboot.ipxe || goto error
39-
40-
:install_nixos_21_05
41-
boot https://hydra.flyingcircus.io/job/flyingcircus/fc-21.05-production/images.netboot/latest/download/netboot.ipxe || goto error
38+
:install_nixos_24_11
39+
set installer_url https://hydra.flyingcircus.io/job/flyingcircus/fc-24.11-production/images.netboot/latest/download/netboot.ipxe
40+
goto start
4241

4342
:install_nixos_dev
44-
boot https://hydra.flyingcircus.io/channels/installer/dev/netboot.ipxe || goto error
43+
set installer_url https://hydra.flyingcircus.io/channels/installer/dev/netboot.ipxe || goto error
44+
goto start
45+
46+
:install_edit_url
47+
form Configure installer settings
48+
item installer_url URL
49+
present || goto start
50+
goto start
51+
52+
:install_start
53+
boot ${installer_url} || error
4554

4655
:netboot
4756
chain --autofree https://boot.netboot.xyz

release/default.nix

+13-1
Original file line numberDiff line numberDiff line change
@@ -194,16 +194,18 @@ let
194194
customIPXEScript = pkgs.writeTextDir "netboot.ipxe" ''
195195
#!ipxe
196196
197-
set console ttyS2,115200
197+
set console ttyS0,115200
198198
199199
:start
200200
menu Flying Circus Installer boot menu
201201
item --gap -- --- Info ---
202202
item --gap -- Console: ''${console}
203203
item --gap -- --- Settings ---
204204
item console_tty0 console=tty0
205+
item console_ttys0 console=ttyS0,115200
205206
item console_ttys1 console=ttyS1,115200
206207
item console_ttys2 console=ttyS2,115200
208+
item console_edit Edit console settings
207209
item --gap -- --- Install ---
208210
item boot_installer Boot installer
209211
item --gap -- --- Other ---
@@ -220,6 +222,10 @@ let
220222
set console tty0
221223
goto start
222224
225+
:console_ttys0
226+
set console ttyS0,115200
227+
goto start
228+
223229
:console_ttys1
224230
set console ttyS1,115200
225231
goto start
@@ -228,6 +234,12 @@ let
228234
set console ttyS2,115200
229235
goto start
230236
237+
:console_edit
238+
form Configure console settings
239+
item console console=
240+
present || goto start
241+
goto start
242+
231243
:local
232244
sanboot || goto error
233245

0 commit comments

Comments
 (0)